/* ========================================
   AUTH PAGES STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.auth-body {
    font-family: 'Lato', sans-serif;
    background: #fff;
    overflow: hidden;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    height: 100vh;
}

/* Left Side - Image */
.auth-left {
    position: relative;
    overflow: hidden;
}

.auth-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Side - Form */
.auth-right {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow-y: auto;
}

.auth-close-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.auth-close-btn:hover {
    background: #E5E5E5;
    transform: rotate(90deg);
}

.auth-close-btn i {
    color: #666;
    font-size: 18px;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 480px;
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 40px;
}

/* .auth-logo img {
    width: 100px;
    height: auto;
} */

/* Title */
.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: #1A1A1A;
    text-align: center;
    margin-bottom: 12px;
}

.auth-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Form Styles */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 10px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-size: 14px;
    color: #1A1A1A;
    transition: all 0.3s ease;
    background: #FAFAFA;
}

#phone {
    border: 0;
}

.form-group input:focus {
    outline: none;
    border-color: #C17A5C;
    background: #fff;
}

.form-group input::placeholder {
    color: #999;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

/* Password Input */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-left: 50px;
}

.toggle-password {
    position: absolute;
    left: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password i {
    color: #999;
    font-size: 18px;
}

/* Phone Input */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FAFAFA;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 0 10px;
    transition: all 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: #C17A5C;
    background: #fff;
}

.country-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-left: 1px solid #E5E5E5;
    cursor: pointer;
}

.flag-icon {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.country-code span {
    font-size: 14px;
    color: #1A1A1A;
    font-weight: 500;
}

.country-code i {
    font-size: 14px;
    color: #999;
}

.phone-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 10px;
}

.phone-input-wrapper input:focus {
    outline: none;
    border: none;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #C17A5C;
    border-radius: 4px;
    cursor: pointer;
    accent-color: #C17A5C;
}

.form-checkbox label {
    font-size: 13px;
    color: #666;
    cursor: pointer;
    margin: 0;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.forgot-link {
    font-size: 13px;
    color: #3B82F6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #2563EB;
    text-decoration: underline;
}

/* Submit Button */
.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #C17A5C 100%, #A86B50 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(193, 122, 92, 0.3);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Footer Text */
.auth-footer-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 0;
}

.auth-link {
    color: #C17A5C;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #A86B50;
    text-decoration: underline;
}

/* Email Verification Specific */
.verification-email {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 30px;
}

.verification-email strong {
    color: #1A1A1A;
    font-weight: 600;
}

.edit-link {
    color: #3B82F6;
    text-decoration: none;
    margin-right: 5px;
    font-weight: 600;
}

.edit-link:hover {
    text-decoration: underline;
}

/* OTP Input */
.otp-input-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.otp-input {
    width: 60px;
    height: 60px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #1A1A1A;
    transition: all 0.3s ease;
    background: #FAFAFA;
}

.otp-input:focus {
    outline: none;
    border-color: #C17A5C;
    background: #fff;
}

/* Success Modal (for account created) */
.success-modal {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.success-modal-content {
    background: #1A1A1A;
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.success-modal-logo {
    margin-bottom: 30px;
}

.success-modal-logo img {
    width: 80px;
    height: auto;
}

.success-modal h3 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.success-modal p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.loading-icon i {
    font-size: 60px;
    color: #C17A5C;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 10px;
}

.loading-state p {
    font-size: 14px;
    color: #666;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-left {
        display: none;
    }
    
    .auth-right {
        padding: 30px 20px;
    }
    
    .auth-form-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .auth-title {
        font-size: 26px;
    }
    
    .auth-subtitle {
        font-size: 13px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .otp-input-wrapper {
        gap: 8px;
    }
    
    .otp-input {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .auth-close-btn {
        top: 20px;
        left: 20px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .auth-logo img {
        width: 80px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .otp-input {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
