
/* =========================================
   LOGIN ABSENSI MAHASISWA TRI
   DARK MINIMALIST THEME
========================================= */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #0b0f14;
    --bg-card: #141a23;
    --bg-input: #0d131c;
    --border: #283342;

    --primary: #3b82f6;
    --primary-hover: #2563eb;

    --text-main: #f1f5f9;
    --text-muted: #8995a5;

    --danger: #f87171;
    --success: #4ade80;
}

/* BODY */
body.login-page {
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

/* MAIN WRAPPER */
.login-wrapper {
    width: 100%;
    max-width: 430px;
    min-height: auto;

    display: block;

    background: var(--bg-card);

    border: 1px solid var(--border);
    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .35);
}

/* FORM PANEL */
.login-form-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 42px 36px;
}

/* HEADING */
.login-heading {
    margin-bottom: 32px;
}

.login-heading-icon {
    width: 52px;
    height: 52px;

    border-radius: 14px;

    background: rgba(59, 130, 246, .12);
    border: 1px solid rgba(59, 130, 246, .2);

    color: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;

    margin-bottom: 22px;
}

.login-heading h2 {
    font-size: 25px;
    color: var(--text-main);
    font-weight: 700;

    margin-bottom: 9px;
}

.login-heading p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* FORM GROUP */
.login-form-group {
    margin-bottom: 21px;
}

.login-form-group label {
    display: block;

    color: #cbd5e1;

    font-size: 12px;
    font-weight: 600;

    margin-bottom: 9px;
}

/* INPUT */
.login-input-wrapper {
    position: relative;
}

.login-input-wrapper input {
    width: 100%;
    height: 49px;

    border: 1px solid var(--border);
    border-radius: 9px;

    padding: 0 15px;

    outline: none;

    background: var(--bg-input);

    font-family: inherit;
    font-size: 13px;

    color: var(--text-main);

    transition: all .25s ease;
}

.login-input-wrapper input:hover {
    border-color: #3b4b60;
}

.login-input-wrapper input:focus {
    border-color: var(--primary);

    background: #111a27;

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, .12);
}

.login-input-wrapper input::placeholder {
    color: #64748b;
}

.login-password {
    padding-right: 85px !important;
}

/* SHOW PASSWORD */
.login-show-password {
    position: absolute;

    right: 19px;
    top: 50%;

    transform: translateY(-50%);

    border: none;
    background: transparent;

    color: #60a5fa;

    font-size: 19px;
    font-weight: 600;

    cursor: pointer;

    transition: .2s;
}

.login-show-password:hover {
    color: #93c5fd;
}

/* BUTTON */
.login-button {
    width: 100%;
    height: 49px;

    border: none;
    border-radius: 9px;

    background: var(--primary);

    color: white;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: all .25s ease;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;
}

.login-button:hover {
    background: var(--primary-hover);

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(37, 99, 235, .2);
}

.login-button:active {
    transform: scale(.98);
}

.login-button-arrow {
    font-size: 17px;
}

/* ALERT */
.login-alert {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    padding: 13px 14px;

    border-radius: 9px;

    font-size: 12px;

    margin-bottom: 20px;

    line-height: 1.6;
}

.login-alert-error {
    background: rgba(248, 113, 113, .08);

    color: var(--danger);

    border: 1px solid rgba(248, 113, 113, .2);
}

.login-alert-success {
    background: rgba(74, 222, 128, .08);

    color: var(--success);

    border: 1px solid rgba(74, 222, 128, .2);
}

/* SECURITY */
.login-security {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 25px;

    color: var(--text-muted);
}

.login-security p {
    font-size: 10px;
}

/* FOOTER */
.login-footer {
    text-align: center;

    margin-top: 30px;

    color: var(--text-muted);

    font-size: 11px;
    line-height: 1.8;
}

.login-footer span {
    font-size: 10px;
    color: #64748b;
}

/* RESPONSIVE TABLET & MOBILE */
@media (max-width: 480px) {

    body.login-page {
        padding: 15px;
    }

    .login-wrapper {
        max-width: 100%;
        border-radius: 15px;
    }

    .login-form-panel {
        padding: 35px 25px;
    }

    .login-heading h2 {
        font-size: 23px;
    }
}

/* SMALL MOBILE */
@media (max-width: 360px) {

    .login-form-panel {
        padding: 30px 20px;
    }

    .login-heading h2 {
        font-size: 21px;
    }

}
