/* Modern Authentication Styles */
:root {
    --auth-primary: #82ce29;
    --auth-primary-hover: #6fb321;
    --auth-success: #10B981;
    --auth-error: #EF4444;
    --auth-text: #1F2937;
    --auth-text-light: #6B7280;
    --auth-border: #E5E7EB;
    --auth-bg: #F3F4F6;
    --auth-card-bg: #FFFFFF;
    --auth-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --auth-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Auth Page Layout */
body.auth-page {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* Auth Card */
.auth-card {
    background: var(--auth-card-bg);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: var(--auth-shadow-lg);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Illustration */
.auth-illustration {
    text-align: center;
    margin-bottom: 25px;
}

.auth-illustration img {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--auth-text);
    margin: 0 0 8px 0;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--auth-text-light);
    margin: 0;
}

/* Form Styles */
.auth-form {
    margin-top: 25px;
}

.auth-form-group {
    margin-bottom: 20px;
    position: relative;
}

.auth-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--auth-text);
    margin-bottom: 8px;
}

.auth-form-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1.5px solid var(--auth-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--auth-text);
    background: #FAFAFA;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-form-input:focus {
    outline: none;
    border-color: var(--auth-primary);
    background: var(--auth-card-bg);
    box-shadow: 0 0 0 3px rgba(130, 206, 41, 0.1);
}

.auth-form-input::placeholder {
    color: #9CA3AF;
}

/* Input Icons */
.auth-form-group .input-icon {
    position: absolute;
    left: 14px;
    top: 38px;
    color: var(--auth-text-light);
    font-size: 16px;
    pointer-events: none;
}

/* Checkbox */
.auth-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.auth-checkbox label {
    font-size: 13px;
    color: var(--auth-text);
    margin: 0;
    cursor: pointer;
}

/* Submit Button */
.auth-btn {
    width: 100%;
    padding: 13px 20px;
    background: var(--auth-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(130, 206, 41, 0.3);
}

.auth-btn:hover {
    background: var(--auth-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(130, 206, 41, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Footer Link */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-border);
}

.auth-footer-text {
    font-size: 14px;
    color: var(--auth-text-light);
    margin: 0;
}

.auth-footer-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-footer-link:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

/* Privacy Text */
.auth-privacy {
    font-size: 12px;
    color: var(--auth-text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.auth-privacy a {
    color: var(--auth-primary);
    text-decoration: none;
}

.auth-privacy a:hover {
    text-decoration: underline;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.toast-success {
    border-left-color: var(--auth-success);
}

.toast.toast-error {
    border-left-color: var(--auth-error);
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast.toast-success .toast-icon {
    color: var(--auth-success);
}

.toast.toast-error .toast-icon {
    color: var(--auth-error);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--auth-text);
    margin: 0 0 4px 0;
}

.toast-message {
    font-size: 14px;
    color: var(--auth-text-light);
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    color: var(--auth-text-light);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--auth-text);
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 25px;
        border-radius: 16px;
    }

    .auth-illustration img {
        width: 120px;
        height: 120px;
    }

    .auth-title {
        font-size: 22px;
    }

    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Hide default header/footer on auth pages */
.auth-page .header,
.auth-page .footer,
.auth-page .page-header {
    display: none;
}