/* Admin Login Modern Premium Styles */

:root {
    --primary-color: #0177cd;
    --primary-hover: #0165ad;
    --secondary-color: #f7faff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-main: #2d3748;
    --text-muted: #718096;
}

body.modern-login {
    background: #f8fafc;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Banner Section */
.login-banner {
    flex: 1.2;
    position: relative;
    background: #0177cd;
    overflow: hidden;
}

.login-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 119, 205, 0.4) 0%, rgba(1, 119, 205, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: white;
}

.banner-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.banner-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 500px;
}

/* Form Section */
.login-form-container {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 40px;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 30px;
    animation: slideUp 0.6s ease-out;
}

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

.login-logo {
    display: block;
    margin-bottom: 40px;
    text-align: center;
}

.login-logo img {
    max-height: 50px;
    object-fit: contain;
}

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

.login-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

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

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-control-modern {
    width: 100%;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.form-control-modern:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(1, 119, 205, 0.1);
    outline: none;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
}

.btn-login {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(1, 119, 205, 0.2);
}

.btn-login:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(1, 119, 205, 0.3);
}

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

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.version-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e2e8f0;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Demo Credits */
.demo-credits {
    margin-top: 30px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
}

.demo-credits .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
}

/* Responsiveness */
@media (max-width: 991px) {
    .login-banner {
        display: none;
    }
    .login-form-container {
        flex: 1;
        background: radial-gradient(circle at top right, rgba(1, 119, 205, 0.05), transparent),
                    radial-gradient(circle at bottom left, rgba(1, 119, 205, 0.05), transparent);
    }
}
