/* Auth Page Styles - Centered Layout */

.auth-page {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    padding: 40px 20px;
}

.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

/* Header Section */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-family: "Special Elite", system-ui;
    font-size: 2.5rem;
    color: #c8af8b;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.auth-header p {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 450px;
}

.auth-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.auth-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(200, 175, 139, 0.15), rgba(200, 175, 139, 0.05));
    border: 1px solid rgba(200, 175, 139, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.auth-feature:hover {
    background: linear-gradient(135deg, rgba(200, 175, 139, 0.25), rgba(200, 175, 139, 0.1));
    transform: translateY(-3px);
}

.auth-feature i {
    font-size: 1.5rem;
    color: #c8af8b;
}

.auth-feature span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Form Card */
.auth-form-card {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-form-card.register-card {
    max-width: 550px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.form-header p {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.95rem;
}

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(238, 90, 90, 0.05));
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    color: #dc3545;
    margin-bottom: 25px;
    animation: shake 0.5s ease;
}

.error-message i {
    font-size: 1.2rem;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group label i {
    color: #c8af8b;
    font-size: 0.95rem;
}

.form-group input {
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #c8af8b;
    box-shadow: 0 0 0 4px rgba(200, 175, 139, 0.15);
}

.form-group input::placeholder {
    color: var(--text-color);
    opacity: 0.4;
}

.optional {
    font-weight: 400;
    opacity: 0.6;
    font-size: 0.8rem;
}

/* Phone Input with Country Code */
.phone-input-wrapper {
    display: flex;
    gap: 0;
}

.country-code-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 15px;
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(200, 175, 139, 0.15), rgba(200, 175, 139, 0.05));
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #c8af8b;
    white-space: nowrap;
}

.phone-input-wrapper input {
    flex: 1;
    border-radius: 0 10px 10px 0;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color);
    opacity: 0.5;
    cursor: pointer;
    padding: 5px;
    transition: opacity 0.3s ease;
}

.toggle-password:hover {
    opacity: 1;
    color: #c8af8b;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-color);
    user-select: none;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked+.checkmark {
    background: #c8af8b;
    border-color: #c8af8b;
}

.remember-me input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.forgot-password,
.terms-link {
    color: #c8af8b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover,
.terms-link:hover {
    color: #a89068;
    text-decoration: underline;
}

/* Submit Button */
.btn-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #c8af8b, #a89068);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200, 175, 139, 0.3);
    margin-top: 5px;
}

.btn-auth-submit:hover {
    background: linear-gradient(135deg, #a89068, #8b7355);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(200, 175, 139, 0.4);
}

.btn-auth-submit.btn-register {
    background: linear-gradient(135deg, #27ae60, #219653);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-auth-submit.btn-register:hover {
    background: linear-gradient(135deg, #219653, #1e8449);
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.4);
}

.btn-auth-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Social Login Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    /* Dark mode compatible */
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-google:hover {
    background: var(--bg-color);
    border-color: #c8af8b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* Divider */
.form-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.form-divider span {
    padding: 0 15px;
    color: var(--text-color);
    opacity: 0.5;
    font-size: 0.85rem;
}

/* Switch Form Section */
.switch-form-section {
    text-align: center;
}

.switch-form-section p {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.btn-switch-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid #c8af8b;
    border-radius: 10px;
    background: transparent;
    color: #c8af8b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-switch-form:hover {
    background: #c8af8b;
    color: white;
}

/* Back to Home Button */
.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    opacity: 1;
    color: #c8af8b;
}

.btn-back-home i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 576px) {
    .auth-page {
        padding: 30px 15px;
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .auth-header p {
        font-size: 1rem;
    }

    .auth-features {
        gap: 10px;
    }

    .auth-feature {
        padding: 12px 15px;
    }

    .auth-feature i {
        font-size: 1.2rem;
    }

    .auth-feature span {
        font-size: 0.75rem;
    }

    .auth-form-card {
        padding: 25px 20px;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .form-group input {
        padding: 12px 14px;
    }

    .btn-auth-submit {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Dark Theme Adjustments */
[data-theme="dark"] .auth-form-card {
    background: var(--card-bg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .auth-feature {
    background: linear-gradient(135deg, rgba(200, 175, 139, 0.1), rgba(200, 175, 139, 0.02));
    border-color: rgba(200, 175, 139, 0.2);
}

[data-theme="dark"] .form-group input {
    background: var(--bg-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-group input:focus {
    box-shadow: 0 0 0 4px rgba(200, 175, 139, 0.1);
}