:root {
    --primary-gold: #FFD700;
    --primary-black: #1a1a1a;
    --secondary-gold: #B8860B;
    --dark-gold: #8B7355;
    --light-gold: #FFF8DC;
    --accent-gold: #DAA520;
    --text-light: #f5f5f5;
    --text-dark: #333333;
    --bg-dark: #0f0f0f;
    --bg-card: #2a2a2a;
    --border-gold: rgba(255, 215, 0, 0.3);
    --shadow-gold: rgba(255, 215, 0, 0.4);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    min-height: 100vh;
}

.auth-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    overflow: hidden;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--gradient-gold);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--gradient-gold);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--gradient-gold);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    background: var(--gradient-gold);
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.auth-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px var(--border-gold),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-gold);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--primary-gold) 40deg,
        transparent 80deg,
        transparent 360deg
    );
    animation: rotate 4s linear infinite;
    opacity: 0.1;
}

.auth-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-card);
    border-radius: 18px;
    z-index: 1;
}

.auth-card > * {
    position: relative;
    z-index: 2;
}

.signup-card {
    max-width: 800px;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 30px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: perspective(1000px) rotateX(10deg);
}

.logo-icon i {
    font-size: 28px;
    color: var(--primary-black);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 400;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-light);
    font-size: 14px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--primary-gold);
    font-size: 16px;
    z-index: 2;
}

.input-container input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-container input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 
        0 0 0 3px rgba(255, 215, 0, 0.1),
        0 5px 20px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.input-container input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-gold);
}

/* Country Select Styling */
.input-container select {
    width: 100%;
    padding: 15px 15px 15px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23FFD700' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.input-container select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 
        0 0 0 3px rgba(255, 215, 0, 0.1),
        0 5px 20px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.input-container select option {
    background: var(--bg-card);
    color: var(--text-light);
    padding: 10px;
    border: none;
}

.input-container select option:hover {
    background: rgba(255, 215, 0, 0.1);
}

/* Mobile Code Styling */
.mobile-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 53px;
    background: var(--gradient-gold) !important;
    color: var(--primary-black) !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px 0 0 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-right: none;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.mobile-code.bg--base {
    background: var(--gradient-gold) !important;
}

/* Mobile Input Container */
.input-container:has(.mobile-code) {
    display: flex;
    align-items: stretch;
}

.input-container:has(.mobile-code) input[type="number"] {
    border-radius: 0 12px 12px 0;
    border-left: none;
    padding-left: 15px;
    flex: 1;
}

.input-container:has(.mobile-code) input[type="number"]:focus {
    z-index: 2;
    border-left: 1px solid var(--primary-gold);
}

/* Error Messages */
.text-danger {
    color: #ff4757 !important;
    font-size: 12px;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.text-danger:not(:empty) {
    opacity: 1;
    transform: translateY(0);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
}

.checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 10px;
    border: solid var(--primary-gold);
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--gradient-gold);
    border-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

.forgot-password {
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--light-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.auth-button {
    position: relative;
    width: 100%;
    padding: 16px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 12px;
    color: var(--primary-black);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: perspective(1000px) rotateX(5deg);
    margin-top: 10px;
}

.auth-button:hover {
    transform: perspective(1000px) rotateX(5deg) translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.auth-button:active {
    transform: perspective(1000px) rotateX(5deg) translateY(0px);
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.auth-button:hover .button-shine {
    left: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.auth-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.auth-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: var(--light-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 15px;
    }
    
    .auth-card {
        padding: 30px 25px;
    }
    
    .signup-card {
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .logo-text {
        font-size: 28px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .floating-shape {
        opacity: 0.05;
    }
    
    .shape-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-2 {
        width: 100px;
        height: 100px;
    }
    
    .shape-3 {
        width: 80px;
        height: 80px;
    }
    
    .shape-4 {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 25px 20px;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-icon i {
        font-size: 24px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .input-container input {
        padding: 12px 12px 12px 45px;
        font-size: 14px;
    }
    
    .input-icon {
        left: 12px;
        font-size: 14px;
    }
    
    .toggle-password {
        right: 12px;
    }
}
