@charset "UTF-8";

/* ===== DYNAMIC LIBRARY THEME WITH ENHANCED TEXT SIZE ===== */
:root {
    --primary-deep: #0a1929;
    --primary: #1a2b3c;
    --primary-light: #2a3b4c;
    --accent-gold: #d4af37;
    --accent-gold-light: #f1c40f;
    --accent-glow: rgba(212, 175, 55, 0.3);
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.85);
    --text-soft: rgba(255, 255, 255, 0.7);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 15px 35px rgba(212, 175, 55, 0.2);
    --radius-md: 16px;
    --radius-lg: 30px;
    --radius-xl: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* ===== DYNAMIC BACKGROUND WITH IMAGE AND OVERLAYS ===== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
    animation: slowZoom 25s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 41, 0.92) 0%, rgba(26, 43, 60, 0.88) 100%);
    backdrop-filter: blur(3px);
}

/* Animated particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(-100%) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-100vh) translateX(100%) rotate(720deg); opacity: 0; }
}

/* Generate multiple particles */
.particle:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-duration: 25s; }
.particle:nth-child(2) { width: 120px; height: 120px; right: 15%; animation-duration: 30s; }
.particle:nth-child(3) { width: 60px; height: 60px; left: 30%; animation-duration: 20s; }
.particle:nth-child(4) { width: 150px; height: 150px; right: 40%; animation-duration: 35s; }
.particle:nth-child(5) { width: 90px; height: 90px; left: 60%; animation-duration: 22s; }
.particle:nth-child(6) { width: 110px; height: 110px; right: 70%; animation-duration: 28s; }

/* ===== HEADER WITH GLASS EFFECT ===== */
.site-header {
    background: rgba(10, 25, 41, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 3px solid var(--accent-gold);
    box-shadow: var(--shadow-md), var(--shadow-gold);
    padding: 20px 0;
    position: relative;
    z-index: 10;
    animation: slideDown 1s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo-block {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-gold);
    background: var(--primary-deep);
    box-shadow: var(--shadow-gold);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 40px var(--accent-glow); }
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.logo-circle:hover img {
    transform: scale(1.1);
}

.header-title h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-light);
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.header-title .subtitle {
    font-size: 1.1rem;
    color: var(--accent-gold);
    display: block;
    margin-top: 8px;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.header-accent {
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--text-soft);
    font-size: 1rem;
}

.header-accent i {
    color: var(--accent-gold);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    min-height: calc(100vh - 200px);
}

/* Animated floating books */
.floating-books {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-book {
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    animation: floatBook 15s infinite ease-in-out;
}

@keyframes floatBook {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.floating-book:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.floating-book:nth-child(2) { bottom: 20%; right: 12%; animation-delay: 2s; }
.floating-book:nth-child(3) { top: 40%; right: 20%; animation-delay: 4s; }
.floating-book:nth-child(4) { bottom: 30%; left: 15%; animation-delay: 6s; }

.login-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 10;
    animation: fadeInScale 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.8) translateY(50px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== MODULE BADGE ===== */
.module-badge {
    text-align: center;
    margin-bottom: 40px;
    animation: slideInRight 1s ease;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.module-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-deep), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--accent-gold);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    position: relative;
    overflow: hidden;
    animation: rotateIn 1.2s ease;
}

@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-180deg) scale(0.5); }
    to { opacity: 1; transform: rotate(0) scale(1); }
}

.module-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, var(--accent-glow), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.module-icon i {
    font-size: 4rem;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.module-badge h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--text-light);
    margin: 0 0 15px;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px var(--accent-glow);
    line-height: 1.2;
}

.module-badge p {
    font-size: 1.3rem;
    color: var(--accent-gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== LOGIN CARD WITH GLASS EFFECT ===== */
.login-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 2px rgba(212, 175, 55, 0.1);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    animation: slideUp 1s ease 0.2s both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card-header {
    background: linear-gradient(135deg, rgba(10, 25, 41, 0.95), rgba(26, 43, 60, 0.95));
    padding: 40px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--accent-gold);
}

.login-card-header::before {
    content: '✧';
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 150px;
    opacity: 0.1;
    color: var(--accent-gold);
    transform: rotate(-15deg);
    animation: spinSlow 30s linear infinite;
}

@keyframes spinSlow {
    from { transform: rotate(-15deg); }
    to { transform: rotate(345deg); }
}

.login-card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-light);
    margin: 0 0 15px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.login-card-header p {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.login-card-body {
    padding: 50px 50px;
}

/* ===== FORM FIELDS - ENHANCED SIZE ===== */
.field-group {
    margin-bottom: 35px;
    animation: fadeIn 0.8s ease;
    animation-fill-mode: both;
}

.field-group:nth-child(1) { animation-delay: 0.3s; }
.field-group:nth-child(2) { animation-delay: 0.5s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.field-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.field-label i {
    color: var(--accent-gold);
    margin-right: 12px;
    width: 24px;
    font-size: 1.2rem;
}

.field-input {
    width: 100%;
    padding: 18px 22px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: var(--text-light);
    background: rgba(10, 25, 41, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    outline: none;
}

.field-input:focus {
    border-color: var(--accent-gold);
    background: rgba(10, 25, 41, 0.8);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.field-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    font-size: 1rem;
}

/* Password wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper .field-input {
    padding-right: 60px;
}

.pw-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-soft);
    padding: 10px;
    transition: all 0.3s ease;
}

.pw-toggle:hover {
    color: var(--accent-gold);
    transform: translateY(-50%) scale(1.1);
}

.pw-toggle i {
    font-size: 1.4rem;
}

/* ===== ALERT ===== */
.alert-modern {
    padding: 20px 25px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(10px);
    border-left: 5px solid var(--accent-gold);
    animation: slideInLeft 0.5s ease, pulse 2s infinite;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.4); }
}

.alert-modern .alert-icon {
    color: var(--accent-gold);
    font-size: 1.5rem;
}

.alert-modern strong {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-soft);
    font-size: 1.3rem;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.alert-close:hover {
    color: var(--accent-gold);
    transform: scale(1.2);
}

/* ===== LOGIN BUTTON - ENHANCED ===== */
.btn-login {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--accent-gold), #f1c40f);
    color: var(--primary-deep);
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md), var(--shadow-gold);
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    animation: fadeIn 0.8s ease 0.7s both;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 50px var(--accent-glow);
    background: linear-gradient(135deg, #f1c40f, var(--accent-gold));
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-login i {
    margin-left: 12px;
    transition: transform 0.4s ease;
    font-size: 1.3rem;
}

.btn-login:hover i {
    transform: translateX(10px);
}

/* ===== ADDITIONAL LINKS ===== */
.login-footer {
    text-align: center;
    margin-top: 35px;
    padding-top: 35px;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
    animation: fadeIn 0.8s ease 0.9s both;
}

.login-footer a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-footer a:hover {
    color: var(--accent-gold);
    transform: translateY(-3px);
}

.login-footer a i {
    font-size: 1rem;
}

.library-hours {
    text-align: center;
    margin-top: 25px;
    color: var(--text-soft);
    font-size: 1rem;
    animation: fadeIn 0.8s ease 1s both;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.library-hours i {
    color: var(--accent-gold);
    font-size: 1.2rem;
    animation: ring 2s infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(10deg); }
    20%, 40%, 60%, 80% { transform: rotate(-10deg); }
}

/* ===== FOOTER ===== */
.site-footer {
    background: rgba(10, 25, 41, 0.9);
    backdrop-filter: blur(15px);
    color: var(--text-soft);
    padding: 40px 0 25px;
    margin-top: auto;
    border-top: 3px solid var(--accent-gold);
    position: relative;
    z-index: 10;
    animation: slideUp 1s ease;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h4 {
    font-family: 'Playfair Display', serif;
    color: var(--text-light);
    font-size: 1.4rem;
    margin: 0 0 15px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-info p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.footer-info i {
    color: var(--accent-gold);
    width: 24px;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 35px;
}

.footer-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateY(-3px);
}

.footer-links a i {
    font-size: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
    font-size: 0.95rem;
}

.footer-bottom a {
    color: var(--accent-gold);
    text-decoration: none;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    body { font-size: 17px; }
    .header-title h1 { font-size: 2rem; }
    .module-badge h2 { font-size: 2.8rem; }
}

@media (max-width: 992px) {
    body { font-size: 16px; }
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .header-logo-block { flex-direction: column; }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-info p { justify-content: center; }
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    .header-title h1 { font-size: 1.8rem; }
    .header-title .subtitle { font-size: 1rem; }
    .module-badge h2 { font-size: 2.4rem; }
    .module-badge p { font-size: 1.1rem; }
    .login-card-header h3 { font-size: 2rem; }
    .login-card-body { padding: 30px; }
    .login-footer a {
        display: block;
        margin: 10px 0;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body { font-size: 14px; }
    .header-inner { padding: 0 20px; }
    .header-title h1 { font-size: 1.5rem; }
    .module-icon {
        width: 100px;
        height: 100px;
    }
    .module-icon i { font-size: 3rem; }
    .module-badge h2 { font-size: 2rem; }
    .login-card-header {
        padding: 30px 20px;
    }
    .login-card-header h3 { font-size: 1.8rem; }
    .login-card-body { padding: 25px; }
    .field-input {
        padding: 15px;
        font-size: 1rem;
    }
    .btn-login {
        padding: 16px;
        font-size: 1.1rem;
    }
    .library-hours {
        flex-direction: column;
        gap: 5px;
    }
}

/* Loading animation for form fields */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.field-input:focus {
    animation: shimmer 3s infinite linear;
    background: linear-gradient(90deg, 
        rgba(10, 25, 41, 0.8) 0%, 
        rgba(26, 43, 60, 0.9) 50%, 
        rgba(10, 25, 41, 0.8) 100%);
    background-size: 1000px 100%;
}