/* Authentication Pages Styles */

/* Auth Page Layout */
.auth-page {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
}

.auth-page .header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.auth {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 2rem;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.auth__container {
    max-width: 1400px;
}

.auth__content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    min-height: 600px;
}

/* Form Container */
.auth__form-container {
    padding: 3rem 2.5rem;
}

.auth__header {
    text-align: center;
    margin-bottom: var(--mb-2-5);
}

.auth__title {
    font-size: var(--bigger-font-size);
    font-weight: var(--font-extra-bold);
    color: var(--title-color);
    margin-bottom: var(--mb-0-5);
}

.auth__description {
    color: var(--text-color);
    font-size: var(--normal-font-size);
}

/* Form Styles */
.auth__form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form__group {
    margin-bottom: var(--mb-1-5);
}

.form__input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.form__icon {
    position: absolute;
    left: 1rem;
    color: var(--text-color-light);
    font-size: var(--normal-font-size);
    z-index: 2;
}

.form__input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--normal-font-size);
    font-family: var(--body-font);
    transition: var(--transition);
    background: white;
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form__input::placeholder {
    color: var(--text-color-light);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-color-light);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Password Strength */
.password-strength {
    margin-top: var(--mb-0-5);
}

.password-strength__bar {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--mb-0-25);
}

.password-strength__fill {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.password-strength__fill.weak {
    background: #ef4444;
    width: 25%;
}

.password-strength__fill.fair {
    background: #f59e0b;
    width: 50%;
}

.password-strength__fill.good {
    background: #10b981;
    width: 75%;
}

.password-strength__fill.strong {
    background: #059669;
    width: 100%;
}

.password-strength__text {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

/* Checkbox Styles */
.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form__checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    margin: 0;
    cursor: pointer;
}

.form__checkbox label {
    font-size: var(--small-font-size);
    color: var(--text-color);
    line-height: 1.5;
    cursor: pointer;
}

.form__checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form__checkbox a:hover {
    color: var(--primary-color-alt);
}

/* Form Options */
.form__options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--mb-2);
}

.form__link {
    color: var(--primary-color);
    font-size: var(--small-font-size);
    text-decoration: none;
    transition: var(--transition);
}

.form__link:hover {
    color: var(--primary-color-alt);
    text-decoration: underline;
}

/* Submit Button */
.auth__submit {
    width: 100%;
    justify-content: center;
    margin-bottom: var(--mb-1-5);
    position: relative;
    overflow: hidden;
}

.auth__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button__loader {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Divider */
.auth__divider {
    text-align: center;
    margin: var(--mb-2) 0;
    position: relative;
}

.auth__divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth__divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    position: relative;
    z-index: 1;
}

/* Social Buttons */
.auth__social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: var(--mb-2);
}

.button--social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: var(--transition);
}

.button--social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button--google:hover {
    border-color: #db4437;
    color: #db4437;
}

.button--facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

/* Auth Footer */
.auth__footer {
    text-align: center;
}

.auth__footer p {
    color: var(--text-color);
    font-size: var(--small-font-size);
}

.auth__footer a {
    color: var(--primary-color);
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: var(--transition);
}

.auth__footer a:hover {
    color: var(--primary-color-alt);
    text-decoration: underline;
}

/* Benefits Section (Register Page) */
.auth__benefits {
    background: var(--gradient-1);
    color: white;
    padding: 3rem 2.5rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.auth__benefits-content {
    width: 100%;
}

.benefits__title {
    font-size: var(--h1-font-size);
    font-weight: var(--font-extra-bold);
    color: white;
    margin-bottom: var(--mb-2);
    text-align: center;
}

.benefits__list {
    margin-bottom: var(--mb-2-5);
}

.benefit__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: var(--mb-1-5);
}

.benefit__icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.benefit__content h3 {
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    color: white;
    margin-bottom: var(--mb-0-25);
}

.benefit__content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--small-font-size);
    line-height: 1.5;
}

.benefits__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat__item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat__number {
    display: block;
    font-size: var(--h2-font-size);
    font-weight: var(--font-extra-bold);
    color: white;
    margin-bottom: var(--mb-0-25);
}

.stat__text {
    font-size: var(--small-font-size);
    color: rgba(255, 255, 255, 0.8);
}

/* Features Section (Login Page) */
.auth__features {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-alt) 100%);
    color: white;
    padding: 3rem 2.5rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.auth__features-content {
    width: 100%;
    text-align: center;
}

.features__title {
    font-size: var(--h1-font-size);
    font-weight: var(--font-extra-bold);
    color: white;
    margin-bottom: var(--mb-1);
}

.features__description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--mb-2);
    font-size: var(--normal-font-size);
    line-height: 1.6;
}

.features__list {
    margin-bottom: var(--mb-2-5);
}

.feature__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--mb-1);
    justify-content: flex-start;
    text-align: left;
}

.feature__item i {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature__item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--small-font-size);
}

.features__image {
    margin-top: var(--mb-2);
}

.features__image img {
    width: 100%;
    max-width: 300px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    opacity: 0.9;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal__content {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: var(--transition);
}

.modal.show .modal__content {
    transform: translateY(0);
}

.modal__header {
    text-align: center;
    padding: 2rem 2rem 1rem;
}

.modal__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--mb-1);
    font-size: 2rem;
    color: white;
}

.modal__icon--success {
    background: #10b981;
}

.modal__icon--error {
    background: #ef4444;
}

.modal__title {
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    color: var(--title-color);
}

.modal__body {
    padding: 0 2rem 1rem;
    text-align: center;
}

.modal__body p {
    color: var(--text-color);
    line-height: 1.6;
}

.modal__footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

/* Error Styles */
.form__input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: var(--small-font-size);
    margin-top: var(--mb-0-25);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.error-message::before {
    content: '⚠';
    font-size: var(--small-font-size);
}

/* Success Styles */
.form__input.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    .auth__content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth__benefits,
    .auth__features {
        order: -1;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .auth__form-container {
        padding: 2rem 1.5rem;
    }

    .benefits__stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .benefit__item,
    .feature__item {
        justify-content: center;
        text-align: center;
    }

    .auth__social {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .auth {
        padding-top: calc(var(--header-height) + 1rem);
    }

    .auth__content {
        margin: 1rem;
        border-radius: var(--border-radius);
    }

    .auth__form-container,
    .auth__benefits,
    .auth__features {
        padding: 1.5rem 1rem;
    }

    .auth__title {
        font-size: var(--h1-font-size);
    }

    .benefits__title,
    .features__title {
        font-size: var(--h2-font-size);
    }

    .form__options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .modal__content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .modal__header,
    .modal__body,
    .modal__footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media screen and (max-width: 350px) {
    .form__input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }

    .form__icon {
        left: 0.75rem;
    }

    .password-toggle {
        right: 0.75rem;
    }
}