/* 
 * Premium Admin Login Styles
 * Modern Glassmorphism Design
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

html, body {
    height: 100% !important;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background-color: #0f172a !important;
    background-image: url(bg.jpg);
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    overflow-x: hidden;
}

#container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
    padding: 20px 0;
}

#header {
    display: none !important;
}

#content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.container-fluid {
    width: 100%;
    max-width: 420px;
}

#content .row [class*="col-"] {
    width: 100% !important;
    margin-left: 0 !important;
    float: none !important;
}

.panel {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden;
    margin-bottom: 0 !important;
}

.panel-heading {
    display: none !important;
}

.panel-body {
    padding: 40px 35px !important;
    background: transparent !important;
}

/* Heading Title */
.panel-body h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #0f172a;
    text-align: center;
    letter-spacing: -0.5px;
}

.help-block {
    margin-bottom: 25px;
    color: #475569;
    text-align: center;
    font-size: 14px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.control-label {
    font-weight: 600;
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
    display: block;
    text-transform: none !important;
}

/* Inputs */
.input-group {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 100%;
}

.input-group-addon {
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    padding-left: 15px !important;
}

.form-control {
    height: 48px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #1e293b !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding-left: 10px !important;
    border-radius: 12px !important;
}

.input-group:focus-within {
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
    border-color: #0ea5e9;
}

.input-group:focus-within .input-group-addon {
    color: #0ea5e9 !important;
}

/* Button */
.btn-primary {
    height: 50px;
    background: linear-gradient(135deg, #7dd3fc 0%, #0ea5e9 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    margin-top: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3) !important;
    text-transform: none !important;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.4) !important;
    opacity: 0.95;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Links */
a, a:link, a:visited {
    color: #0ea5e9 !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: #0369a1 !important;
    text-decoration: underline;
}

/* Alerts */
.alert {
    border-radius: 12px !important;
    border: none !important;
    padding: 15px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 25px !important;
}

.alert-danger {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
    border-left: 4px solid #ef4444 !important;
}

/* Footer (Logo) */
#footer {
    width: 100%;
    height: auto !important;
    padding: 20px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#footer a {
    display: flex;
    justify-content: center;
    width: 100%;
}

#footer svg {
    display: block;
    margin: 0 auto;
}

/* Responsive fixes */
@media (max-width: 480px) {
    #content {
        padding: 10px !important;
    }
    .panel-body {
        padding: 25px 20px !important;
    }
    .panel-body h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .form-group {
        margin-bottom: 12px;
    }
    #footer {
        padding: 20px 10px !important;
    }
    #footer svg {
        max-width: 85% !important;
    }
}

/* Specific fix for short screens */
@media (max-height: 700px) and (max-width: 480px) {
    .panel-body {
        padding: 15px 20px !important;
    }
    .panel-body h1 {
        margin-bottom: 10px;
    }
    .help-block {
        display: none; /* Hide helper text to save space */
    }
    #footer {
        padding: 10px !important;
    }
}