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

body {
    font-family: "Nunito", sans-serif;
    background: linear-gradient(135deg, #188262 0%, #0f4d3a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 40px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    font-size: 40px;
    font-weight: bold;
    color: #188262;
    margin-bottom: 10px;
    font-family: "Varela Round", sans-serif;
}

.login-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #cccccc;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: #333333;
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #a0a0a0;
}

.form-group input:focus {
    outline: none;
    background: #404040;
    box-shadow: 0 0 0 2px rgba(24, 130, 98, 0.3);
}

.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #007AFF;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
}

.btn-login:hover:not(:disabled) {
    background: #0056d2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.btn-login:disabled {
    background: #6a97c4;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-login .loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

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

.help-link {
    text-align: center;
    margin-top: 15px;
}

.help-link a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.help-link a:hover {
    color: #007AFF;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444444;
}

.register-link p {
    color: #ffffff;
    font-size: 14px;
}

.register-link a {
    color: #007AFF;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #0056d2;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

.alert-error {
    background: rgba(231, 76, 60, 0.2);
    color: #ff6b6b;
    border-left: 4px solid #e74c3c;
}

.alert-success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border-left: 4px solid #27ae60;
}

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

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-logo {
        font-size: 32px;
    }

    .login-title {
        font-size: 20px;
    }
}