:root {
    --auth-bg-primary: #f8f9fa;
    --auth-bg-secondary: #ffffff;
    --auth-text-primary: #2d3748;
    --auth-text-secondary: #718096;
    --auth-text-muted: #a0aec0;
    --auth-accent-primary: #0b7d00;
    --auth-accent-secondary: #81b77c;
    --auth-accent-light: #9ec99a;
    --auth-accent-dark: #096600;
    --auth-border-color: #e2e8f0;
    --auth-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --auth-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --auth-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --auth-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --auth-gradient-primary: linear-gradient(135deg, #0b7d00 0%, #81b77c 100%);
    --auth-gradient-light: linear-gradient(135deg, #81b77c 0%, #9ec99a 100%);
    --auth-gradient-bg: linear-gradient(135deg, #e4f6e2 0%, #eef7ed 50%, #f8faf7 100%);
}

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

body.auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--auth-gradient-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(11, 125, 0, 0.08) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

body.auth-page::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(129, 183, 124, 0.08) 0%, transparent 70%);
    animation: rotate 40s linear infinite reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

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

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: var(--auth-shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-icon {
    width: 64px;
    height: 64px;
    background: var(--auth-gradient-primary);
    border-radius: 16px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--auth-shadow-lg);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.auth-logo-icon svg {
    width: 36px;
    height: 36px;
    stroke: white;
    stroke-width: 2;
}

.auth-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--auth-text-primary);
    margin-bottom: 8px;
}

.auth-logo p {
    font-size: 15px;
    color: var(--auth-text-secondary);
}

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert svg {
    flex-shrink: 0;
}

.alert-success {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.alert-info {
    background: #e4f6e2;
    color: #0b7d00;
    border: 1px solid #9ec99a;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-text-primary);
}

.form-input {
    padding: 14px 16px;
    border: 2px solid var(--auth-border-color);
    border-radius: 12px;
    font-size: 15px;
    color: var(--auth-text-primary);
    background: white;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--auth-accent-primary);
    box-shadow: 0 0 0 4px rgba(11, 125, 0, 0.1);
}

.form-input::placeholder {
    color: var(--auth-text-muted);
}

.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--auth-border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-checkbox:checked {
    background: var(--auth-gradient-primary);
    border-color: var(--auth-accent-primary);
}

.form-checkbox-label {
    font-size: 14px;
    color: var(--auth-text-secondary);
    cursor: pointer;
    user-select: none;
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--auth-gradient-primary);
    color: white;
    box-shadow: var(--auth-shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--auth-shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.auth-link {
    font-size: 14px;
    color: var(--auth-accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-link:hover {
    color: var(--auth-accent-dark);
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--auth-border-color);
}

.auth-footer p {
    font-size: 14px;
    color: var(--auth-text-secondary);
    margin: 0;
}

.auth-footer a {
    color: var(--auth-accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-footer a:hover {
    color: var(--auth-accent-dark);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .auth-card {
        padding: 32px 24px;
    }

    .auth-logo h1 {
        font-size: 24px;
    }

    .form-input {
        font-size: 16px;
    }
}
