* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #43497B !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    background: #2B91CF;
    color: white;
    padding: 24px;
    border: none;
    text-align: center;
}

.card-header h5 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 40px 35px;
    background: white;
}

.logo-container {
    text-align: center;
    margin-bottom: 35px;
}

.logo-container img {
    width: 90px;
    height: 90px;
    animation: pulse 2s ease-in-out infinite;
    display: block;
    margin: 0 auto;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.form-group {
    margin-bottom: 24px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group-addon {
    position: absolute;
    left: 1px;
    top: 1px;
    height: calc(100% - 2px);
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    border-radius: 7px 0 0 7px;
    color: #2B91CF;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.form-control {
    height: 48px;
    padding-left: 55px;
    padding-right: 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
    width: 100%;
    background: white !important;
    position: relative;
    z-index: 1;
}

.form-control.error {
    border-color: #dc3545;
}

.form-control:focus {
    border-color: #2B91CF;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-control:focus ~ .input-group-addon {
    background: #2B91CF;
    color: white;
    border-color: #2B91CF;
    z-index: 6;
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #333 !important;
    border: 1px solid #e0e0e0 !important;
    transition: background-color 5000s ease-in-out 0s;
    background-color: white !important;
    background-clip: content-box !important;
}

.form-control:-webkit-autofill:focus {
    border-color: #2B91CF !important;
}

.form-control:-moz-autofill,
.form-control:-moz-autofill-preview {
    background-color: white !important;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 5;
    transition: color 0.3s ease;
    background: white;
    padding: 5px;
    border-radius: 4px;
}

.password-toggle:hover {
    color: #2B91CF;
}

.btn-login {
    width: 100%;
    height: 48px;
    background: #2B91CF;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 145, 207, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert {
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    animation: slideDown 0.3s ease-out;
    padding: 12px 15px;
    font-size: 14px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: #2B91CF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #1e6b93;
    text-decoration: underline;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-login.loading .btn-text {
    display: none;
}

.btn-login.loading .spinner {
    display: block;
}

@media (max-width: 576px) {
    .card-body {
        padding: 30px 25px;
    }
    
    .login-container {
        padding: 15px;
    }
}

