/* Login pages - Index, passwordReset, AccessDenied - shared styles */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 77, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 0, 0.1) 0%, transparent 50%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #004d00 0%, #006600 50%, #008000 100%);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #004d00 0%, #006600 100%);
    padding: 20px;
    border-radius: 15px;
    display: inline-block;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 77, 0, 0.3);
}

.logo-img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

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

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
}

.login-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

.login-form {
    margin-top: 30px;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.login-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: #004d00;
    box-shadow: 0 0 0 0.2rem rgba(0, 77, 0, 0.15);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #004d00;
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.forgot-password-link {
    color: #004d00;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.forgot-password-link:hover {
    color: #006600;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #004d00 0%, #006600 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 77, 0, 0.3);
}

.btn-login:hover {
    background: linear-gradient(135deg, #006600 0%, #008000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 77, 0, 0.4);
    color: white;
}

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

.login-back-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.login-back-link:hover {
    color: #004d00;
}

.login-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: login-float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -75px;
    animation-delay: 2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 10%;
    animation-delay: 4s;
}

@keyframes login-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

body .alert {
    border-radius: 10px;
    border: none;
}

body .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

body .modal-header {
    border-radius: 15px 15px 0 0;
}

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

    .login-title {
        font-size: 1.75rem;
    }

    .logo-img {
        max-width: 150px;
    }
}
