:root {
    --primary: #5E2A97;
    --primary-hover: #7B3FB5;
    --primary-light: #E8D4F0;
    --background: #F7F7F7;
    --white: #FFFFFF;
    --border: #EEEEEE;
    --text-dark: #222222;
    --text-muted: #666666;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text-dark);
}

.auth-container {
    min-height: 100vh;
    display: flex;
}

.auth-left {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.auth-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--white);
    overflow-y: auto;
}

.form-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem 0;
}

.logo {
    max-width: 180px;
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-group .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
    z-index: 1;
}

.form-group .icon-top {
    top: 28px;
}

.form-control {
    width: 100%;
    height: 56px;
    padding: 0 1rem 0 3rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--background);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(94, 42, 151, 0.1);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--primary);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    border: 1px solid var(--border);
    cursor: pointer;
    flex-shrink: 0;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1.5;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-hover);
}

.btn-primary {
    width: 100%;
    height: 56px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(94, 42, 151, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(94, 42, 151, 0.4);
}

.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border);
}

.divider span {
    position: relative;
    background: var(--white);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-social {
    flex: 1;
    height: 56px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: var(--background);
    border-color: var(--primary);
}

.signup-link,
.signin-link {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.password-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.error-message {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.field-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.alert-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Modal Styles */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-body {
    padding: 3rem 2rem;
}

.modal-icon {
    font-size: 60px;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.modal-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-link {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 2rem;
}

@media (max-width: 991px) {
    .auth-left {
        display: none;
    }
}

@media (max-width: 576px) {
    .auth-right {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .social-buttons {
        flex-direction: column;
    }

    .signin-link {
        margin-top: 4rem;
    }

    .modal-body {
        padding: 2rem 1.5rem;
    }
}
