/* ================================================
   BACKEND LOGIN - PROFESSIONAL & TECHNICAL
   ================================================ */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login Wrapper */
.login-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.login-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at -10% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Login Container */
.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo-img {
    display: block;
    max-width: 180px;
    width: 100%;
    height: auto;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Form Wrapper */
.login-form-wrapper {
    margin-bottom: 20px;
}

/* Form Labels */
.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label i {
    color: #6366f1;
    font-size: 13px;
}

/* Form Inputs */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #0f172a;
}

.form-control:focus {
    border-color: #6366f1;
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control-lg {
    padding: 14px 18px;
    font-size: 16px;
}

/* Error Messages */
.invalid-feedback {
    display: block;
    font-size: 13px;
    color: #dc2626;
    margin-top: 6px;
    font-weight: 500;
}

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

.is-invalid .form-control:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Form Check (Remember Me) */
.form-check {
    padding-left: 0;
    margin-bottom: 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    margin-right: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background: white;
}

.form-check-input:checked {
    background-color: #6366f1;
    border-color: #6366f1;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-check-label {
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    user-select: none;
    margin-bottom: 0;
}

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-login i {
    margin-right: 8px;
}

/* Login Help Text */
.login-help {
    text-align: center;
    padding: 15px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 10px;
    border-left: 3px solid #6366f1;
}

.login-help small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-help i {
    color: #6366f1;
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    margin: 0;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 640px) {
    .login-container {
        padding: 30px 25px;
        max-width: 100%;
        margin: 0 15px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 13px;
    }

    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn-login {
        padding: 12px 18px;
        font-size: 14px;
    }

    .login-logo {
        margin-bottom: 14px;
    }

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

    .login-header {
        margin-bottom: 25px;
    }

    .login-form-wrapper {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 25px 20px;
    }

    .login-title {
        font-size: 20px;
    }

    .login-logo-img {
        max-width: 130px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-control {
        padding: 11px 14px;
        font-size: 16px;
    }

    .btn-login {
        padding: 11px 16px;
        font-size: 13px;
    }

    .login-help {
        padding: 12px;
        font-size: 12px;
    }
}
