/* ===================================================
   INDEX.CSS - Login Page Styles (Semester Pendek UG)
   Single CSS file for index.aspx
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    color: #3a3f5c;
    background: #e8ecf2;
    overflow-x: hidden;
}

a {
    color: #4d79f5;
    text-decoration: none;
}

a:hover {
    color: #3a5fd9;
}

img {
    max-width: 100%;
    vertical-align: middle;
    border: 0;
}

/* --- Main Wrapper with Background Image --- */
.main-signin-wrapper {
    background-image: url('../img/bg.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: top left;
    min-height: calc(100vh - 40px);
    margin: 20px;
    border-radius: 12px;
    border: 3px solid rgba(180, 190, 210, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 30px 40px 20px 20px;
}

/* --- Loader --- */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    transition: opacity 0.4s;
}

.loader-img {
    width: 60px;
    height: 60px;
}

/* --- Main Layout --- */
.login-wrapper {
    width: 100%;
    max-width: 520px;
}

/* --- Info Section (top, glassmorphism over bg) --- */
.info-section {
    width: 100%;
    max-width: 520px;
    margin-bottom: 5px;
}

.info-content {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    padding: 36px 40px;
    animation: cardSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.info-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4d79f5;
    margin-bottom: 5px;
    text-align: center;
    letter-spacing: 0.3px;
}

.info-text {
    font-size: 0.95rem;
    color: #3a3f5c;
    line-height: 1.8;
    text-align: justify;
}

.info-text p {
    margin-bottom: 5px;
}

.info-text ul {
    margin: 0 0 5px 20px;
    padding: 0;
    list-style: disc;
}

.info-text li {
    margin-bottom: 5px;
    padding-left: 4px;
}

.drop-cap {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4d79f5;
    font-style: italic;
}

/* --- Login Card --- */
.login-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.35);
    overflow: hidden;
    animation: cardSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card-body {
    padding: 20px 24px 16px;
}

/* --- Logo & Title --- */
.login-logo {
    text-align: center;
    margin-bottom: 10px;
}

.login-logo img {
    height: 80px;
    transition: transform 0.3s ease;
    mix-blend-mode: multiply;
}

.login-logo img:hover {
    transform: scale(1.05);
}

.login-title {
    text-align: center;
    margin-bottom: 6px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #4d79f5;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.title-logo {
    height: 2.2rem;
    width: auto;
    mix-blend-mode: multiply;
}

.login-subtitle {
    text-align: center;
    margin-bottom: 28px;
    font-size: 0.85rem;
    color: #737688;
    font-weight: 400;
}

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

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #50649c;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-family: inherit;
    color: #3a3f5c;
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid #d4dae8;
    border-radius: 7px;
    outline: none;
    transition: all 0.25s ease;
    text-align: left;
}

.form-control:focus {
    background: #fff;
    border-color: #4d79f5;
    box-shadow: 0 0 0 2px rgba(77, 121, 245, 0.15);
}

.form-control::placeholder {
    color: #6b7394;
}

/* --- Alert --- */
.alert {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    font-weight: 500;
}

.alert-danger {
    background: #fff0f2;
    color: #d9534f;
    border: 1px solid #fdd;
}

/* --- Buttons --- */
.btn-login {
    display: block;
    width: 100%;
    padding: 9px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #4d79f5 0%, #6c5ce7 100%);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(77, 121, 245, 0.35);
}

.btn-login:hover {
    background: linear-gradient(135deg, #3a5fd9 0%, #5a4bd6 100%);
    box-shadow: 0 6px 20px rgba(77, 121, 245, 0.5);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(77, 121, 245, 0.3);
}

/* --- Info Close Panel --- */
.info-close-panel {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.info-close-panel h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #e65100;
    margin: 0;
}

/* --- Login Hint --- */
.login-hint {
    text-align: center;
    font-size: 0.72rem;
    color: #5a5f78;
    margin-bottom: 12px;
    line-height: 1.4;
    padding: 0;
}

/* --- Divider --- */
.login-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4dae8, transparent);
    margin: 0 0 20px;
}

/* --- Footer --- */
.login-footer {
    text-align: center;
    padding: 10px 20px;
    background: rgba(240, 243, 250, 0.7);
    border-top: 1px solid rgba(212, 218, 232, 0.5);
    font-size: 0.7rem;
    color: #5a5f78;
}

.login-footer a {
    color: #4d79f5;
    font-weight: 500;
}

/* --- Message Container --- */
.msg-container {
    margin-top: 6px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .main-signin-wrapper {
        margin: 10px;
        padding: 15px;
        align-items: stretch;
    }

    .info-section,
    .login-wrapper {
        max-width: 100%;
    }

    .info-content {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .login-card {
        max-width: 100%;
        border-radius: 14px;
    }

    .login-card-body {
        padding: 20px 20px 16px;
    }

    .login-footer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 12px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .login-card-body {
        padding: 24px 20px 20px;
    }

    .login-title {
        font-size: 1.15rem;
    }

    .login-logo img {
        height: 60px;
    }
}

/* --- Two-column form row --- */
.form-row {
    display: flex;
    gap: 10px;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
