* {
    box-sizing: border-box;
}


html {
    color-scheme: dark;
}


body {
    margin: 0;

    min-height: 100vh;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at top,
            #171b2d 0%,
            #0b0d12 45%,
            #080a0e 100%
        );

    color: #f5f7fa;
}


/* ======================================================
   CONTAINER
   ====================================================== */

.auth-container {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}


.auth-card {
    width: 100%;
    max-width: 430px;

    padding: 38px;

    background:
        rgba(18, 21, 28, 0.96);

    border: 1px solid #282d39;
    border-radius: 18px;

    box-shadow:
        0 24px 80px
        rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(20px);
}


/* ======================================================
   LOGO
   ====================================================== */

.logo {
    display: inline-block;

    margin-bottom: 32px;

    color: #8290ff;

    font-size: 24px;
    font-weight: 800;

    letter-spacing: -0.7px;

    text-decoration: none;
}


.logo:hover {
    color: #96a1ff;

    text-decoration: none;
}


/* ======================================================
   TEXT
   ====================================================== */

h1 {
    margin: 0 0 9px;

    font-size: 29px;
    font-weight: 750;

    letter-spacing: -0.8px;
}


.subtitle {
    margin: 0 0 28px;

    color: #969dac;

    line-height: 1.5;
}


/* ======================================================
   FORM
   ====================================================== */

.field {
    margin-bottom: 19px;
}


label {
    display: block;

    margin-bottom: 8px;

    color: #dfe3ea;

    font-size: 14px;
    font-weight: 600;
}


input {
    width: 100%;

    padding: 13px 14px;

    background: #0c0f15;
    color: #ffffff;

    border: 1px solid #2c3240;
    border-radius: 10px;

    outline: none;

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}


input::placeholder {
    color: #5f6674;
}


input:hover {
    border-color: #3a4150;
}


input:focus {
    background: #0f1219;

    border-color: #7c8cff;

    box-shadow:
        0 0 0 3px
        rgba(124, 140, 255, 0.14);
}


/* ======================================================
   BUTTON
   ====================================================== */

button,
.button-link {
    display: block;

    width: 100%;

    margin-top: 8px;
    padding: 13px 16px;

    border: 0;
    border-radius: 10px;

    background: #6e7df5;
    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.15s ease,
        transform 0.08s ease,
        border-color 0.15s ease;
}


button:hover,
.button-link:hover {
    background: #7d8bff;

    text-decoration: none;
}


button:active,
.button-link:active {
    transform: scale(0.99);
}


/* ======================================================
   LINKS
   ====================================================== */

a {
    color: #8996ff;

    text-decoration: none;
}


a:hover {
    text-decoration: underline;
}


.footer-text {
    margin: 25px 0 0;

    color: #8e95a3;

    font-size: 14px;

    text-align: center;
}


/* ======================================================
   ERROR
   ====================================================== */

.message {
    margin-bottom: 22px;
    padding: 14px 16px;

    border-radius: 10px;

    line-height: 1.5;
}


.message.error {
    background:
        rgba(255, 80, 100, 0.09);

    border:
        1px solid
        rgba(255, 80, 100, 0.25);

    color: #ff9baa;
}


/* ======================================================
   ACCOUNT
   ====================================================== */

.account-header {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-bottom: 28px;
}


.avatar {
    width: 54px;
    height: 54px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #6979f8,
            #8c68f8
        );

    color: white;

    font-size: 23px;
    font-weight: 800;
}


.account-header h1 {
    margin-bottom: 3px;
}


.account-subtitle {
    margin: 0;
}


.account-info {
    margin-bottom: 25px;

    overflow: hidden;

    background: #0d1016;

    border: 1px solid #252b37;
    border-radius: 12px;
}


.account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 14px 16px;

    font-size: 14px;
}


.account-row + .account-row {
    border-top: 1px solid #252b37;
}


.account-row span {
    color: #858c9a;
}


.account-row strong {
    color: #dce0e8;

    font-size: 13px;
}


.status-active {
    color: #6ee7a5 !important;
}


.logout-button {
    background: transparent;

    border: 1px solid #303642;

    color: #c4cad5;
}


.logout-button:hover {
    background: #191d25;

    border-color: #404755;
}


/* ======================================================
   POWERED BY kAUTh
   ====================================================== */

.powered-by {
    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid #252b37;

    color: #646b79;

    font-size: 12px;

    text-align: center;

    user-select: none;
}


.powered-by strong {
    color: #8996ff;

    font-weight: 700;
}


.powered-icon {
    margin-right: 5px;

    color: #6e7df5;

    font-size: 10px;
}


/* ======================================================
   MOBILE
   ====================================================== */

@media (max-width: 500px) {

    .auth-container {
        padding: 14px;
    }


    .auth-card {
        padding: 28px 22px;

        border-radius: 15px;
    }


    h1 {
        font-size: 26px;
    }


    .account-row {
        align-items: flex-start;
        flex-direction: column;

        gap: 5px;
    }
}
/* ======================================================
   DEVELOPER
   ====================================================== */

.developer-apps {
    margin-top: 22px;
}


.developer-app {
    margin-bottom: 14px;
    padding: 17px;

    background: #0d1016;

    border: 1px solid #252b37;
    border-radius: 12px;
}


.developer-app-header {
    margin-bottom: 16px;

    font-size: 16px;
}


.developer-value {
    margin-top: 12px;
}


.developer-value span {
    display: block;

    margin-bottom: 5px;

    color: #737b89;

    font-size: 12px;
}


code {
    display: block;

    overflow-wrap: anywhere;

    color: #cbd1ff;

    font-family:
        "Cascadia Code",
        "JetBrains Mono",
        Consolas,
        monospace;

    font-size: 12px;
}


.empty-state {
    padding: 26px 18px;

    background: #0d1016;

    border: 1px dashed #303744;
    border-radius: 12px;

    text-align: center;
}


.empty-state h3 {
    margin: 0 0 7px;

    font-size: 16px;
}


.empty-state p {
    margin: 0;

    color: #858c9a;

    font-size: 14px;
    line-height: 1.5;
}


.field-help {
    margin: 7px 2px 0;

    color: #6f7785;

    font-size: 12px;
    line-height: 1.5;
}


/* ======================================================
   CREDENTIALS
   ====================================================== */

.secret-warning {
    margin-bottom: 20px;
    padding: 13px 14px;

    background:
        rgba(255, 190, 80, 0.08);

    border:
        1px solid
        rgba(255, 190, 80, 0.2);

    border-radius: 10px;

    color: #e7c785;

    font-size: 13px;
    line-height: 1.6;
}


.credential-box {
    margin-bottom: 14px;
    padding: 14px;

    background: #0b0e14;

    border: 1px solid #282e39;
    border-radius: 10px;
}


.credential-box span {
    display: block;

    margin-bottom: 8px;

    color: #777f8e;

    font-size: 12px;
}


.credential-box code {
    color: #abb5ff;

    font-size: 13px;
}


/* ======================================================
   SECONDARY BUTTON
   ====================================================== */

.secondary-button {
    margin-bottom: 10px;

    background: #191d27;

    border: 1px solid #303746;

    color: #cbd0db;
}


.secondary-button:hover {
    background: #202530;
}