/* Modern Premium Login Screen Styles */
:root {
    --primary-color: #ff8055;
    --primary-gradient: linear-gradient(135deg, #ff8055 0%, #e6734d 100%);
    --bg-overlay: rgba(10, 20, 45, 0.65);
    /* More blue/translucent */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-muted: #cbd5e1;
    --glow-color: rgba(130, 160, 255, 0.2);
}

body,
html {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
}

.login-container {
    height: 100vh;
    width: 100%;
    background: url('../media/modern_login_bg.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    /* Prevents clipping at top/bottom */
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    z-index: 1;
}

/* Top Glow Lighting Effect Removed as per user request */

.login-box {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    /* More compact */
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    /* border-top removed as per user request */
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 60px -10px var(--glow-color);
    /* Soft outer glow */
    animation: fadeIn 0.8s ease-out;
}

/* Internal Glow Effect Removed as per user request */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 1.25rem;
    /* Reduced */
}

.login-logo img {
    max-width: 150px;
    /* Reduced to fit viewport */
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.login-header {
    text-align: center;
    color: #fff;
    margin-bottom: 1.5rem;
    /* Reduced */
}

.login-header h2 {
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1rem;
    /* More compact */
    position: relative;
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s;
    z-index: 10;
}

.form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border);
    color: #fff !important;
    padding: 0.85rem 1rem 0.85rem 3rem;
    /* height: 52px;*/
    width: 100% !important;
    /* Force full width to match button */
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 128, 85, 0.15);
    outline: none;
}

.form-control:focus+i {
    color: var(--primary-color);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

label {
    display: block;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    /* Closer to inputs */
    margin-left: 0.2rem;
    opacity: 0.9;
}

/* Checkbox Styling */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.form-check-input {
    margin: 0 !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border);
    cursor: pointer;
    width: 1.1rem;
    height: 1.1rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-login {
    background: #ff8055;
    color: #fff;
    border: none;
    width: 100%;
    padding: 0.9rem;
    /* Reduced */
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
    /* Reduced */
    /*box-shadow: 0 10px 15px -3px #ff8055;*/
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px #ff8055;
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Custom Scrollbar for the page if needed */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

@media (max-width: 480px) {
    .login-box {
        margin: 1.5rem;
        padding: 2rem;
    }
}