:root {
    --primary: #00A8A8;
    --primary-hover: #009090;
    --success: #10B981;
    --danger: #DC2626;
    --warning: #F59E0B;
    --gray-border: #E5E7EB;
    --gray-light: #F3F4F6;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --transition-fast: 150ms ease-in-out;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --radius: 4px;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #007336 0%, #359a28 50%, #61bf1a 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    font-size: 0.875rem;
}

.login-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: var(--space-2xl);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.logo {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.login-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: var(--space-2xl);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: var(--space-xl);
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: var(--space-lg) 3rem var(--space-lg) var(--space-lg);
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all var(--transition-fast);
    text-align: center;
    letter-spacing: 1px;
    font-weight: 600;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-input::-ms-reveal {
    display: none;
}

.form-input::-webkit-credentials-auto-fill-button {
    display: none !important;
}

.toggle-password {
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    z-index: 10;
}

.toggle-password:hover {
    color: white;
}

.login-btn {
    width: 100%;
    padding: var(--space-lg);
    font-size: 1rem;
    font-weight: 700;
    color: #007336;
    background: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.login-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: none;
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    opacity: 0.8;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

.loading i {
    animation: spin 1s linear infinite;
    display: inline-block;
    font-size: 1rem;
}

.footer {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: var(--space-md) var(--space-xl);
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    box-shadow: var(--shadow-md);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-container {
    background: white;
    color: var(--text-primary);
    border-radius: var(--radius);
    padding: var(--space-2xl);
    max-width: 350px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-icon {
    font-size: 3rem;
    color: var(--danger);
    margin-bottom: var(--space-lg);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.modal-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

.modal-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #007336 0%, #359a28 50%, #61bf1a 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    flex-direction: column;
}

.preloader-content {
    text-align: center;
    color: white;
}

.preloader-logo {
    font-size: 4rem;
    margin-bottom: var(--space-xl);
    animation: pulse 2s infinite;
}

.preloader-text {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.preloader-subtext {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: var(--space-2xl);
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.preloader-progress {
    margin-top: var(--space-xl);
    font-size: 0.75rem;
    opacity: 0.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: var(--space-xl);
        padding: var(--space-2xl);
    }

    .footer {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: var(--space-2xl);
    }
}