* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family:
        'Poppins',
        Helvetica,
        sans-serif;

    background:
        linear-gradient(
            135deg,
            #eef4ff 0%,
            #f8fafc 50%,
            #eef6ff 100%
        );

    color: #172033;
    min-height: 100vh;

    -webkit-font-smoothing: antialiased;
}

button,
input {
    font-family: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.app {
    min-height: 100vh;
}


/* ===================================
   HEADER
=================================== */

.app-header {
    background:
        linear-gradient(
            135deg,
            #050505,
            #151515
        );

    padding: 9px 14px;
    min-height: 56px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, .10);

    position: relative;
    z-index: 10;
}

.app-header img {
    display: block;
    width: 105px;
    height: auto;
}

.app-header h1 {
    font-size: 18px;
    margin-bottom: 1px;
}

.app-header span {
    font-size: 11px;
    color: #9ca3af;
}


/* ===================================
   SCREEN
=================================== */

.screen {
    width: 100%;
    max-width: 480px;

    margin: 0 auto;

    padding: 15px 12px 25px;
}


/* ===================================
   CARD
=================================== */

.card {
    background: rgba(255, 255, 255, .96);

    border-radius: 17px;

    padding: 18px 15px;

    border: 1px solid rgba(226, 232, 240, .8);

    box-shadow:
        0 7px 22px rgba(15, 23, 42, .06),
        0 2px 5px rgba(15, 23, 42, .03);
}

.login-card {
    margin-top: 15px;
}

.card h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.3px;
}


/* ===================================
   LOGIN
=================================== */

.subtitle {
    margin-top: 4px;
    margin-bottom: 17px;

    color: #64748b;
    font-size: 13px;
}


/* ===================================
   LABELS
=================================== */

label {
    display: block;

    margin-top: 11px;
    margin-bottom: 5px;

    font-size: 12px;
    font-weight: 600;

    color: #334155;
}


/* ===================================
   INPUT
=================================== */

input {
    width: 100%;

    height: 46px;

    border: 1px solid #dbe2ea;
    border-radius: 10px;

    padding: 0 12px;

    font-size: 14px;

    color: #172033;
    background: #ffffff;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

input::placeholder {
    color: #94a3b8;
}

input:hover {
    border-color: #cbd5e1;
}

input:focus {
    border-color: #ef4444;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .10);
}


/* ===================================
   BUTTONS
=================================== */

.primary-btn,
.danger-btn {
    width: 100%;

    min-height: 46px;

    border: 0;
    border-radius: 10px;

    margin-top: 15px;

    padding: 0 14px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    color: #ffffff;

    transition:
        transform .15s ease,
        box-shadow .2s ease,
        opacity .2s ease;

    box-shadow:
        0 4px 11px rgba(37, 99, 235, .16);
}

.primary-btn {
    background:
        linear-gradient(
            135deg,
            #ef4444,
            #ef4444
        );
}

.danger-btn {
    background:
        linear-gradient(
            135deg,
            #ef4444,
            #dc2626
        );

    box-shadow:
        0 4px 11px rgba(220, 38, 38, .15);
}

.primary-btn:hover,
.danger-btn:hover {
    transform: translateY(-1px);
}

.primary-btn:active,
.danger-btn:active {
    transform: translateY(1px);
}

.primary-btn:disabled,
.danger-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* ===================================
   LOGOUT
=================================== */

.logout-btn {
    border: 1px solid rgba(239, 68, 68, .25);

    background: rgba(239, 68, 68, .08);

    color: #f87171;

    padding: 6px 10px;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, .15);
    color: #fca5a5;
}


/* ===================================
   WELCOME
=================================== */

.welcome {
    margin-bottom: 14px;
    padding-left: 1px;
}

.welcome span {
    font-size: 12px;
    color: #64748b;
}

.welcome h2 {
    margin-top: 1px;
    font-size: 21px;
    color: #0f172a;
}


/* ===================================
   ATTENDANCE STATUS
=================================== */

.attendance-card {
    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f8fbff
        );

    border: 1px solid #dbeafe;
    border-radius: 13px;

    padding: 15px;

    text-align: center;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .7);
}

.attendance-card .label {
    display: block;

    margin: 0 0 4px;

    color: #64748b;

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: .6px;
}

.attendance-card h2 {
    font-size: 19px;
    font-weight: 700;

    color: #ef4444;
    letter-spacing: .2px;
}


/* ===================================
   ATTENDANCE DATE
=================================== */

.attendance-date-box {
    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 11px;

    padding: 10px 12px;
    margin-top: 8px;

    text-align: center;

    box-shadow:
        0 2px 7px rgba(15, 23, 42, .03);
}

.attendance-date-box .label {
    display: block;

    margin: 0 0 3px;

    color: #64748b;

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: .5px;
}

.attendance-date-box strong {
    display: block;

    color: #ef4444;

    font-size: 13px;
    font-weight: 600;
}


/* ===================================
   TIME INFORMATION
=================================== */

.time-info {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-top: 9px;
}

.time-box {
    background: #f8fafc;

    border: 1px solid #e2e8f0;
    border-radius: 11px;

    padding: 12px 8px;

    text-align: center;

    transition:
        border-color .2s ease,
        transform .2s ease;
}

.time-box:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.time-box span {
    display: block;

    color: #64748b;

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: .4px;

    margin-bottom: 4px;
}

.time-box strong {
    display: block;

    color: #0f172a;

    font-size: 15px;
    font-weight: 600;
}


/* ===================================
   DAY INFO
=================================== */

.day-info {
    display: inline-block;

    margin-top: 9px;

    padding: 4px 9px;

    border-radius: 18px;

    background: #f1f5f9;

    color: #475569;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: .2px;

    position: relative;

    left: 50%;

    transform: translateX(-50%);
}


/* ===================================
   MESSAGES
=================================== */

.message {
    padding: 9px 11px;

    border-radius: 9px;

    margin-top: 11px;

    font-size: 12px;
    line-height: 1.4;

    border: 1px solid transparent;
}

.message.error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.message.success {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}


/* ===================================
   SMALL MOBILE
=================================== */

@media (max-width: 380px) {

    .screen {
        padding: 10px 9px 20px;
    }

    .card {
        padding: 16px 13px;
        border-radius: 15px;
    }

    .login-card {
        margin-top: 10px;
    }

    .card h2 {
        font-size: 20px;
    }

    .subtitle {
        margin-bottom: 14px;
        font-size: 12px;
    }

    label {
        margin-top: 9px;
        margin-bottom: 4px;
        font-size: 11px;
    }

    input {
        height: 43px;
        font-size: 13px;
    }

    .primary-btn,
    .danger-btn {
        min-height: 43px;
        margin-top: 12px;
        font-size: 13px;
    }

    .welcome {
        margin-bottom: 11px;
    }

    .welcome h2 {
        font-size: 19px;
    }

    .attendance-card {
        padding: 13px;
    }

    .attendance-card h2 {
        font-size: 18px;
    }

    .attendance-date-box {
        padding: 8px 10px;
        margin-top: 7px;
    }

    .time-info {
        gap: 6px;
        margin-top: 7px;
    }

    .time-box {
        padding: 10px 6px;
    }

    .time-box strong {
        font-size: 14px;
    }
}


/* ===================================
   TABLET / DESKTOP
=================================== */

@media (min-width: 600px) {

    .screen {
        padding-top: 30px;
    }

    .login-card {
        margin-top: 15px;
    }
}
