body {
    background: #f3f3f4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background: #ffffff;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #2d353c 0%, #1a1f24 100%);
    padding: 35px 20px;
    text-align: center;
    border-bottom: 4px solid #00acac;
    position: relative;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00acac 0%, #00d4d4 50%, #00acac 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.login-header .brand {
    margin-bottom: 20px;
}

.login-header .brand b {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.login-header .icon {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 15px;
    width: 70px;
    height: 70px;
}

.login-header .icon i {
    color: #00acac;
    font-size: 40px;
    line-height: 40px;
}

.login-body {
    padding: 30px;
    background: #ffffff;
}

.form-floating {
    position: relative;
    margin-bottom: 30px;
}

.form-control {
    border: 1px solid #d2d2d2;
    border-radius: 4px;
    font-size: 14px;
    padding: 10px 12px;
    height: 44px;
    transition: all 0.2s ease;
    background-color: #fafafa;
    color: #676a6c;
}

.form-control:hover {
    border-color: #b8b8b8;
    background-color: #ffffff;
}

.form-control:focus {
    border-color: #00acac;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 172, 172, 0.1);
    background-color: #ffffff;
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 12px;
    color: #676a6c;
    font-size: 14px;
    font-weight: normal;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
}

.form-floating input:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label {
    top: -22px;
    left: 0;
    font-size: 12px;
    padding: 0 5px;
    z-index: 1;
}

.form-control.is-invalid {
    border-color: #ed5565;
}

.invalid-feedback {
    color: #ed5565;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 3px;
    padding: 10px 15px;
    margin-bottom: 30px;
    font-size: 13px;
}

.btn-success {
    background: linear-gradient(135deg, #00acac 0%, #00c4c4 100%);
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 15px;
    height: 44px;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 172, 172, 0.2);
}

.btn-success:hover {
    background: linear-gradient(135deg, #00c4c4 0%, #00acac 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 172, 172, 0.3);
}

.btn-success:focus,
.btn-success:active {
    background: #008c8c;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 172, 172, 0.2);
}

.login-buttons {
    margin-top: 25px;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: none;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #00acac;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer text */
.login-footer {
    padding: 20px;
    text-align: center;
    color: #676a6c;
    font-size: 12px;
    border-top: 1px solid #e7eaec;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        max-width: 100%;
    }

    .login-header {
        padding: 25px 15px;
    }

    .login-body {
        padding: 25px 20px;
    }
}

/* Hide scroll to top button on login page */
.btn-scroll-to-top {
    display: none !important;
}

/* Additional polish */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    box-shadow: 0 0 0px 1000px white inset;
    -webkit-text-fill-color: #676a6c;
}

/* Better placeholder styling */
.form-control::placeholder {
    color: transparent;
}

.form-control:placeholder-shown ~ label {
    cursor: text;
}