/* css/login.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #6a11cb;
    --secondary-color: #8b5cf6;
    --light-gray: #f0f2f5;
    --text-color: #333;
    --font-family-base: 'Poppins', sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --heading-xl: clamp(2.2rem, 3vw, 2.8rem);
    --heading-lg: clamp(1.8rem, 2.4vw, 2.2rem);
    --heading-md: 1.45rem;
    --heading-sm: 1.2rem;
    --heading-xs: 1rem;
    --body-text: 0.95rem;
    --body-text-sm: 0.85rem;
}

body {
    font-family: var(--font-family-base);
    margin: 0;
    background: #ffffff;
    min-height: 100vh;
    font-size: var(--body-text);
    line-height: 1.55;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin: 0 0 0.35em;
    line-height: 1.25;
}

h1 { font-size: var(--heading-xl); }
h2 { font-size: var(--heading-lg); }
h3 { font-size: var(--heading-md); }
h4 { font-size: var(--heading-sm); }
h5 { font-size: var(--heading-xs); }
h6 { font-size: var(--body-text); text-transform: uppercase; letter-spacing: 0.08em; }

p, li, label, input, button, textarea {
    font-family: var(--font-family-base);
    font-size: var(--body-text);
}

small {
    font-size: var(--body-text-sm);
}

body.modal-open {
    overflow: hidden;
}

.login-page-wrapper {
    display: flex;
    height: 100vh;
}

.login-showcase {
    flex-basis: 50%;
    background-color: #ffffff;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.showcase-content {
    max-width: 400px;
}

.showcase-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.showcase-logo img {
    max-width: 220px;
    width: 100%;
    height: auto;
}

.showcase-content h1 {
    font-size: 2.5em;
    margin-top: 20px;
}

.login-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
    width: 100%;
    max-width: 400px;
}

.login-form-wrapper {
    flex-basis: 50%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-container h2 {
    text-align: left;
    margin-bottom: 10px;
}

.access-title span {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.access-subtitle {
    color: #374151;
    font-size: 1rem;
    margin: 16px 0 12px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

.form-options {
    text-align: right;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-options a {
    color: var(--primary-color);
    text-decoration: none;
}

.button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.button.primary {
    background-color: var(--primary-color);
    color: white;
}

.button.tertiary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.button.secondary {
    background-color: #e4e6eb;
    color: #4b4f56;
}

.button.social-google {
    background-color: white;
    color: #444;
    border: 1px solid #ddd;
}

.button.tertiary:hover {
    background-color: rgba(15, 157, 88, 0.08);
    opacity: 1;
}

.button:hover {
    opacity: 0.9;
}

.social-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #aaa;
    margin: 20px 0;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.social-login-divider:not(:empty)::before {
    margin-right: .25em;
}

.social-login-divider:not(:empty)::after {
    margin-left: .25em;
}

.error-message {
    color: #fa3e3e;
    text-align: center;
    margin-bottom: 15px;
    min-height: 20px;
}

.info-message {
    font-size: 0.9rem;
    text-align: center;
    color: #4b5563;
    min-height: 20px;
    margin-bottom: 15px;
}

.info-message.success {
    color: #16a34a;
}

.info-message.error {
    color: #dc2626;
}

.signup-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.signup-modal.open {
    display: flex;
}

.signup-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.signup-modal__content {
    position: relative;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    z-index: 1;
    animation: modalFadeIn 0.35s ease;
}

.signup-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.signup-modal__close:hover {
    color: #333;
}

.signup-modal__content h3 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 1.6rem;
}

.signup-modal__subtitle {
    text-align: center;
    color: #555;
    margin: 0 0 25px;
    font-size: 0.95rem;
}

.signup-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.brand-icon {
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
}

.brand-icon img {
    max-width: 70%;
    max-height: 70%;
}

.brand-text h1 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--primary-color);
}

.brand-title {
    color: var(--primary-color);
}

.brand-text span {
    display: block;
    margin-top: 4px;
    font-size: 0.95rem;
    color: #5c6b80;
}

.login-subtitle {
    margin: 0 0 18px;
    color: #667085;
    font-size: 0.95rem;
}

.login-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 10px;
    font-size: 0.95rem;
    color: #4b5563;
}

.login-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-benefits li i {
    color: var(--primary-color);
    margin-right: 8px;
}

.declaration-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
    display: grid;
    gap: 12px;
}

.declaration-summary {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.45;
}

.declaration-summary .declaration-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
}

.declaration-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #1f2937;
}

.declaration-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body {
        background: linear-gradient(160deg, rgba(15, 157, 88, 0.2), rgba(52, 211, 153, 0.25));
    }

    .login-showcase {
        display: none;
    }

    .login-form-wrapper {
        flex-basis: 100%;
        padding: 32px 16px;
    }

    .login-container {
        padding: 32px 24px;
        box-shadow: 0 12px 32px rgba(74, 58, 255, 0.15);
    }

    .brand-header {
        justify-content: center;
    }

    .brand-text {
        text-align: left;
    }

    .login-benefits {
        gap: 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .brand-header {
        gap: 12px;
    }

    .brand-text h1 {
        font-size: 1.4rem;
    }

    .brand-text span {
        font-size: 0.9rem;
    }

    .login-subtitle {
        font-size: 0.9rem;
    }
}
