* {
    box-sizing: border-box;
}

body, p, ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: #f5f7fa;
    min-height: 100vh;
    display: block;
    padding: 5px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    animation: backgroundMove 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, 5%); }
}


.wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header.info {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.info .top-section {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
    margin-bottom: 24px;
}

.info .left-section {
    display: flex;
    align-items: center;
}

.logo-container img {
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.logo-container img:hover {
    transform: scale(1.02);
}

.navigation-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.nav-btn span {
    position: relative;
    z-index: 1;
}

.nav-btn i {
    font-size: 16px;
    transition: transform 0.2s ease;
    position: relative;
    z-index: 1;
}

.nav-btn:hover i {
    transform: translateX(-2px);
}

.e-register-btn {
    background: #3b82f6;
    color: #ffffff;
}

.e-register-btn:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.administrative-btn {
    background: #8b5cf6;
    color: #ffffff;
}

.administrative-btn:hover {
    background: #7c3aed;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.library-btn {
    background: #06b6d4;
    color: #ffffff;
}

.library-btn:hover {
    background: #0891b2;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.info .contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.address-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.address-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    font-weight: 500;
}

.map-links {
    display: flex;
    gap: 12px;
    margin-left: 20px;
}

.contact-info a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #6b7280;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: #3b82f6;
}

.contact-info i {
    width: 16px;
    text-align: center;
    color: #3b82f6;
}

.info h1 {
    font-size: 28px;
    color: #111827;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.update-section {
    margin-top: 24px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    text-align: center;
    border: 1px solid #bfdbfe;
}

.update-section p {
    margin: 0;
    color: #1e40af;
    font-weight: 600;
    font-size: 14px;
}

.update-section p:first-child {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    color: #3b82f6;
}

.update-section .update-time {
    font-weight: 400;
    color: #3b82f6;
    margin-top: 4px;
}

#formContent {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    max-width: 480px;
    margin: 0 auto;
    border: 1px solid #e5e7eb;
}

#formContent form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

input[type="text"],
input[type="password"] {
    width: 350px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
    color: #111827;
    font-weight: 500;
    margin: 0;
}

input[type="password"] {
    padding-right: 48px;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    z-index: 2;
    font-size: 18px;
    transition: color 0.2s ease;
    padding: 4px;
}

.toggle-password:hover {
    color: #3b82f6;
}

/* Base */
input[type="submit"],
button[type="submit"]{
  background:#3b82f6;
  color:#ffffff;
  padding:14px 24px;
  border:none;
  border-radius:10px;
  cursor:pointer;
  font-size:15px;
  font-weight:600;
  transition:all 0.2s ease;
  text-transform:uppercase;
  letter-spacing:0.5px;
  margin-top:4px;

  /* make it “big” and aligned with your inputs */
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  width:350px;              /* matches your input width */
}

/* Hover */
input[type="submit"]:hover,
button[type="submit"]:hover{
  background:#2563eb;
  box-shadow:0 4px 12px rgba(59,130,246,0.3);
}

/* Active */
input[type="submit"]:active,
button[type="submit"]:active{
  transform:scale(0.98);
}

/* Icon spacing inside the <button> */
button[type="submit"] i{ font-size:16px }


#formContent a {
    text-align: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    margin-top: -8px;
}

#formContent a:hover {
    color: #3b82f6;
}

.welcome-link {
    margin-top: 24px;
    text-align: center;
}

.welcome-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.welcome-link a:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.welcome-link a i {
    font-size: 16px;
}

.maintenance-section {
    max-width: 480px;
    margin: 24px auto 0;
    padding: 16px 24px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 12px;
    color: #991b1b;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #fecaca;
    font-size: 14px;
}

.maintenance-section i {
    font-size: 20px;
    color: #dc2626;
}

.marquee-text {
    text-align: center;
}

@media (max-width: 1024px) {
    .info .top-section {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .info .left-section {
        justify-content: center;
    }

    .navigation-buttons {
        justify-content: center;
    }

    .info .contact-info {
        align-items: center;
    }

    .address-section {
        align-items: center;
    }

    .map-links {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    header.info {
        padding: 24px;
    }

    .info h1 {
        font-size: 24px;
    }

    #formContent {
        padding: 32px 24px;
    }

    .navigation-buttons {
        flex-direction: column;
        width: 100%;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .logo-container img {
        max-width: 200px;
    }
}

@media (max-width: 525px) {
    body {
        padding: 12px;
    }

    header.info {
        padding: 20px;
    }

    .info h1 {
        font-size: 20px;
        padding-top: 16px;
    }

    #formContent {
        padding: 24px 20px;
    }

input[type="text"],
input[type="password"],
input[type="submit"],
button[type="submit"]{
  padding:12px 16px;
  font-size:14px;
  width:100%;    
}


    .nav-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .logo-container img {
        max-width: 180px;
    }

    .contact-info {
        font-size: 12px;
    }

    .update-section {
        padding: 12px 16px;
    }
}

@media (max-width: 375px) {
    .info h1 {
        font-size: 18px;
    }

    .logo-container img {
        max-width: 150px;
    }

    #formContent {
        padding: 20px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    input[type="text"],
    input[type="password"] {
        border: 2px solid #000;
    }

    input[type="submit"] {
        border: 2px solid #000;
    }
}
