.login-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease-out;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffc107;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 25px 50px rgba(26, 110, 115, 0.2), 0 10px 25px rgba(0, 0, 0, 0.1);
}

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-section img {
    max-width: 180px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-section img:hover {
    transform: scale(1.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a6e73;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #1a6e73;
    font-size: 1rem;
    opacity: 0.8;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 45px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: #1a6e73;
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 110, 115, 0.1);
}

.form-input:hover {
    border-color: #ffc107;
}

.form-input.error {
    border-color: #dc3545;
    animation: shake 0.5s ease;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a6e73;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.toggle-password:hover {
    opacity: 1;
}

.forgot-password {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.forgot-password a {
    color: #1a6e73;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.forgot-password a:hover {
    color: #ffc107;
    border-bottom-color: #ffc107;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: #1a6e73;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(26, 110, 115, 0.3);
}

.btn-login:hover {
    background: #0f5559;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 110, 115, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-login::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-login:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

@media (max-width: 768px) {
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .form-input {
        padding: 0.75rem 1rem 0.75rem 40px;
        font-size: 16px;
    }
    
    .btn-login {
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem 1rem;
    }
    
    .logo-section img {
        max-width: 140px;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .form-input {
        font-size: 16px;
    }
    
    .btn-login:hover {
        transform: none;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    body {
        padding: 0.5rem;
    }
    
    .login-card {
        padding: 1.25rem;
    }
    
    .logo-section {
        margin-bottom: 1rem;
    }
    
    .logo-section img {
        max-width: 100px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

@media (min-width: 1920px) {
    .login-container {
        max-width: 520px;
    }
    
    .login-card {
        padding: 3rem 2.5rem;
    }
}

@media (min-width: 2560px) {
    .login-container {
        max-width: 600px;
    }
    
    .login-card {
        padding: 4rem 3rem;
    }
    
    .form-input {
        padding: 1rem 1rem 1rem 50px;
        font-size: 1.2rem;
    }
    
    .btn-login {
        padding: 1.25rem;
        font-size: 1.3rem;
    }
}

/* Error state styling */
.form-group {
    position: relative;
    margin-bottom: 1.8rem; /* Increased to accommodate error message */
}

.form-input.error {
    border-color: #dc3545 !important;
    background-color: #fff8f8;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 10px;
    font-style: italic;
    margin-top: 4px;
    margin-left: 12px;
    min-height: 14px;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shake animation for error */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.form-input.shake {
    animation: shake 0.4s ease;
}