/* Login Page Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Gradient Background */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #475569 0%, #64748b 25%, #94a3b8 50%, #cbd5e1 75%, #e2e8f0 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating Shapes */
.login-background::before,
.login-background::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.login-background::before {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.login-background::after {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    bottom: -50px;
    right: -50px;
    animation-delay: 5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Login Container */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Card */
.login-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Header */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 400;
}

/* Form Groups */
.form-group-custom {
    margin-bottom: 24px;
    position: relative;
}

.form-group-custom label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Input Fields */
.form-control-custom {
    width: 100%;
    padding: 14px 18px 14px 48px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-control-custom::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control-custom:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.form-control-custom.is-invalid {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(254, 226, 226, 0.2);
}

/* Input Icons */
.input-icon {
    position: absolute;
    left: 18px;
    top: 42px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    pointer-events: none;
}

/* Error Messages */
.invalid-feedback {
    display: block;
    color: #fef2f2;
    background: rgba(239, 68, 68, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 6px;
    backdrop-filter: blur(10px);
}

/* Remember Me Checkbox */
.remember-group {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.custom-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.custom-checkbox:hover .checkmark {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.custom-checkbox input:checked~.checkmark {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #475569;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked~.checkmark::after {
    display: block;
}

.custom-checkbox label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    cursor: pointer;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(71, 85, 105, 0.3);
    margin-bottom: 16px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(71, 85, 105, 0.4);
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

.btn-login:active {
    transform: translateY(0);
}

/* Forgot Password Link */
.forgot-password {
    text-align: center;
}

.forgot-password a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.forgot-password a:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 576px) {
    .login-card {
        padding: 40px 30px;
        border-radius: 20px;
    }

    .login-header h1 {
        font-size: 28px;
    }

    .login-header p {
        font-size: 14px;
    }

    .form-control-custom {
        padding: 12px 16px 12px 44px;
        font-size: 14px;
    }

    .input-icon {
        left: 16px;
        top: 40px;
        font-size: 16px;
    }

    .btn-login {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 24px;
    }
}