* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {

    font-family:
        Tahoma,
        Arial,
        sans-serif;

    background:
        #07111f;

    color:
        #ffffff;

    min-height: 100vh;
}


button,
input {

    font-family: inherit;

}


.app {

    width: 100%;

    max-width: 520px;

    margin: auto;

    min-height: 100vh;

}


.page {

    min-height: 100vh;

    padding: 20px;

}


.hidden {

    display: none !important;

}


/* LOGIN */

#loginPage {

    display: flex;

    align-items: center;

    justify-content: center;

}


.login-card {

    width: 100%;

    background:
        #101c2e;

    border:
        1px solid #20324c;

    border-radius: 24px;

    padding: 30px 22px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.35);

}


.logo {

    width: 72px;

    height: 72px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 22px;

    background:
        #f59e0b;

    color:
        #111827;

    font-size: 34px;

}


h1 {

    text-align: center;

    font-size: 25px;

}


.subtitle {

    text-align: center;

    color: #94a3b8;

    margin-top: 8px;

    margin-bottom: 30px;

}


.input-group {

    margin-bottom: 18px;

}


.input-group label {

    display: block;

    color: #cbd5e1;

    font-size: 14px;

    margin-bottom: 8px;

}


.input-group input {

    width: 100%;

    height: 54px;

    border-radius: 14px;

    border: 1px solid #2b405e;

    background: #0a1525;

    color: #fff;

    padding: 0 16px;

    font-size: 16px;

    outline: none;

}


.input-group input:focus {

    border-color:
        #f59e0b;

}


.primary-button {

    width: 100%;

    height: 55px;

    border: 0;

    border-radius: 15px;

    background:
        #f59e0b;

    color:
        #111827;

    font-size: 17px;

    font-weight: bold;

    cursor: pointer;

}


/* TOPBAR */

.topbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 18px;

}


.topbar small {

    color: #94a3b8;

}


.topbar h2 {

    margin-top: 5px;

}


.logout-button {

    border: 1px solid #334155;

    background: #111c2c;

    color: #cbd5e1;

    border-radius: 12px;

    padding: 10px 14px;

}


/* STATUS */

.status-card {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 20px;

    margin-bottom: 15px;

    border-radius: 20px;

    background: #101c2e;

    border: 1px solid #20324c;

}


.status-icon {

    width: 50px;

    height: 50px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #17253a;

    color: #22c55e;

    font-size: 28px;

}


.status-card span {

    display: block;

    color: #94a3b8;

    font-size: 13px;

}


.status-card strong {

    display: block;

    margin-top: 5px;

    font-size: 19px;

}


/* CARDS */

.card {

    background:
        #101c2e;

    border:
        1px solid #20324c;

    border-radius:
        20px;

    padding:
        18px;

    margin-bottom:
        15px;

}


.card-title {

    display: flex;

    justify-content: space-between;

    color: #94a3b8;

    font-size: 13px;

    margin-bottom: 12px;

}


.card h3 {

    font-size: 18px;

}


.card p {

    color: #94a3b8;

    margin-top: 7px;

}


/* GPS */

.gps-status {

    font-size: 16px;

    margin-bottom: 8px;

}


.gps-card small {

    color: #94a3b8;

}


/* ATTENDANCE */

.attendance-card {

    padding: 10px 0 18px;

}


.attendance-button {

    width: 100%;

    height: 82px;

    border: 0;

    border-radius: 22px;

    background:
        #22c55e;

    color:
        #052e16;

    font-size: 21px;

    font-weight: bold;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    cursor: pointer;

    box-shadow:
        0 12px 35px rgba(34,197,94,.18);

}


.attendance-button.out {

    background:
        #ef4444;

    color:
        #ffffff;

    box-shadow:
        0 12px 35px rgba(239,68,68,.18);

}


.attendance-button:disabled {

    opacity: .5;

    cursor: not-allowed;

}


/* LAST */

.last-attendance {

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.last-attendance strong {

    color: #22c55e;

}


.last-attendance span {

    color: #94a3b8;

}


/* PROJECTS */

.projects-list {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.project-item {

    padding: 14px;

    background:
        #0a1525;

    border-radius: 14px;

    border:
        1px solid #20324c;

}


.project-item strong {

    display: block;

}


.project-item span {

    display: block;

    color: #94a3b8;

    font-size: 12px;

    margin-top: 5px;

}


/* MESSAGE */

.message {

    margin-top: 15px;

    padding: 12px;

    border-radius: 12px;

    text-align: center;

    font-size: 14px;

    display: none;

}


.message.show {

    display: block;

}


.message.error {

    background: #3a1519;

    color: #fecaca;

}


.message.success {

    background: #12331f;

    color: #bbf7d0;

}


@media (max-width: 380px) {

    .page {

        padding: 14px;

    }

    .login-card {

        padding: 24px 18px;

    }

}