* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #0c1120;
    color: #f1f5f9;
    font-family: Arial, sans-serif;
}

h1, h2 {
    margin-top: 0;
}

p {
    color: #a5adc0;
    line-height: 1.6;
}

#auth {
    width: min(440px, 92%);
    margin: auto;
    padding: 45px 0;
}

.brand {
    text-align: center;
    margin-bottom: 28px;
}

.logo {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: auto auto 18px;
    background: #7953e8;
    border-radius: 20px;
    font-size: 36px;
}

.brand h1 {
    font-size: 36px;
    margin-bottom: 6px;
}

.card, .panel, article {
    background: #171e30;
    border: 1px solid #30394c;
    border-radius: 16px;
    padding: 25px;
}

.card h2 {
    font-size: 21px;
}

label {
    display: block;
    margin: 18px 0 8px;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 14px;
    border: 1px solid #394357;
    border-radius: 8px;
    background: #0c1120;
    color: white;
    font-size: 15px;
}

input:focus {
    outline: 2px solid #7953e8;
}

button {
    border: 0;
    border-radius: 8px;
    padding: 13px 18px;
    background: #7953e8;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

button:hover:not(:disabled) {
    background: #6943d8;
}

button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

#submitButton {
    width: 100%;
    margin-top: 24px;
    font-weight: bold;
}

.link {
    width: 100%;
    background: transparent;
    color: #b49aff;
}

#message {
    text-align: center;
    color: #fca5a5;
    font-size: 14px;
}

footer {
    text-align: center;
    margin-top: 28px;
    color: #64748b;
    font-size: 12px;
}

#dashboard {
    min-height: 100vh;
    display: flex;
}

aside {
    width: 240px;
    padding: 25px 16px;
    background: #151c2e;
    border-right: 1px solid #30394c;
}

aside h2 {
    color: #b49aff;
}

nav button {
    display: block;
    width: 100%;
    text-align: left;
    margin: 8px 0;
    background: transparent;
}

nav .active {
    background: #7953e8;
}

#logout {
    margin-top: 35px;
    width: 100%;
    background: #30394c;
}

main {
    flex: 1;
    min-width: 0;
    padding: 32px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 25px 0;
}

article strong {
    font-size: 32px;
}

.panel {
    margin-bottom: 20px;
}

@media (max-width: 700px) {
    #dashboard {
        flex-direction: column;
    }

    aside {
        width: 100%;
    }

    main {
        padding: 18px;
    }

    .metrics {
        grid-template-columns: 1fr;
    }
}
