:root {
    --primary-green: #2c8e22;
    --primary-dark: #1a5c14;
    --primary-hover: #1f6a17;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-border: #dee2e6;
    --text-muted: #6c757d;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    --radius: 1rem;
}

body {
    background: var(--gray-border);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.auth-card {
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: none;
    overflow: hidden;
}

.auth-header {
    text-align: center;
    padding: 2rem 2rem 0.5rem;
    background: transparent;
    border-bottom: none;
}

.auth-brand {
    display: inline-block;
}

.auth-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.auth-body {
    padding: 1.5rem 2rem 2rem;
    overflow-y: auto;
}

.auth-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.75rem 1.5rem 1.25rem;
    background: transparent;
    border-top: 1px solid var(--gray-border);
}

.form-control {
    border-radius: 0.75rem;
    border: 2px solid var(--gray-border);
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(44, 142, 34, 0.25);
}

.btn-primary,
.btn-auth {
    background: var(--primary-green);
    border-color: var(--primary-green);
    border-radius: 0.75rem;
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem;
}

.btn-primary:hover,
.btn-auth:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline-secondary {
    border-color: var(--gray-border);
    border-radius: 0.75rem;
}

.btn-outline-secondary:hover {
    background: var(--primary-hover);
}

.alert {
    border-radius: 0.75rem;
    border-left: 4px solid;
    padding: 0.75rem 1rem;
}

.alert-success { border-left-color: #28a745; }
.alert-error, .alert-danger { border-left-color: #dc3545; }
.alert-info { border-left-color: #17a2b8; }
.alert-warning { border-left-color: #ffc107; }

.text-primary { color: var(--primary-green) !important; }
.bg-light-soft { background-color: var(--gray-light); }

.auth-panel {
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

.auth-panel .card-body {
    padding: 0 !important;
}

.auth-symbol {
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e9f7e8;
    color: var(--primary-green);
    font-size: 1.25rem;
}

.auth-kicker {
    color: var(--primary-green);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-title {
    color: #212529;
    font-weight: 700;
}

.auth-subtitle,
.auth-meta {
    color: var(--text-muted);
}

.auth-link {
    color: var(--primary-green);
    font-weight: 600;
}

.auth-link:hover,
.auth-link:focus {
    color: var(--primary-dark);
}

.auth-help {
    border-left: 3px solid var(--primary-green);
    background: #f8fff8;
}

.login-password-wrap {
    position: relative;
}

.login-password-wrap .form-control {
    padding-right: 3.25rem;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #586158;
    padding: 0.5rem;
}

.login-password-toggle:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 1px;
    border-radius: 0.25rem;
}

@media (max-width: 480px) {
    .auth-card { max-width: 100%; }
    .auth-body { padding: 1.5rem; }
    .auth-header { padding: 1.5rem 1.5rem 0.5rem; }
    .auth-logo { width: 60px; height: 60px; }
}