/* Login Page Styles */

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* Login Box */
.login-box {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.6s ease-out;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.login-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.app-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

/* Form Styles */
.login-form {
    margin-bottom: 20px;
}

.form-floating {
    position: relative;
}

.form-floating>.form-control {
    height: 55px;
    border-radius: 10px;
    border: 2px solid #e0e6ed;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    font-size: 16px;
}

.form-floating>.form-control:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--primary-light);
}

.form-floating>label {
    color: #6c757d;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--primary-color);
}

.form-floating label i {
    margin-right: 5px;
}

/* Checkbox */
.form-check-input {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid #e0e6ed;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    margin-left: 8px;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
}

/* Login Button */
.btn-login {
    width: 100%;
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, var(--primary-color) 80px, var(--accent-color) 100%);
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--primary-light);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    font-size: 14px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #fee;
    color: #dc3545;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e6ed;
}

.login-footer p {
    font-size: 12px;
    color: #6c757d;
}

/* Background Animation */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0.3;
    overflow: hidden;
    pointer-events: none;
}

.login-background dotlottie-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Invalid Feedback */
.invalid-feedback {
    font-size: 12px;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 576px) {
    .login-box {
        margin: 20px;
        padding: 30px 20px;
    }

    .app-title {
        font-size: 24px;
    }

    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
}

/* Loading State */
.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-login .spinner-border {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box {
    animation: fadeIn 0.6s ease-out;
}

/* Theme Support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1d21 0%, #2c3136 100%);
    }

    .login-box {
        background: rgba(33, 37, 41, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .app-title {
        color: #e9ecef;
    }

    .form-floating>.form-control {
        background-color: #2c3136;
        border-color: #495057;
        color: #e9ecef;
    }

    .form-floating>.form-control:focus {
        background-color: #212529;
        color: #e9ecef;
    }

    .form-check-label {
        color: #adb5bd;
    }

    .login-footer p {
        color: #adb5bd;
    }
}

/* .dotlottie-player {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
  transform: translateY(-50%);
} */