@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #101113;
    --card: #1b1c20;
    --input: #24252a;
    --border: #35363c;

    --text: #ffffff;
    --muted: #96969d;
    --accent: #d0d0d0;

    --success: #80c99a;
    --error: #e78484;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family: 'Montserrat', sans-serif;

    background: var(--bg);
    color: var(--text);

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

/* SVG FIX */

svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* BACKGROUND */

.auth-background {
    position: fixed;
    inset: 0;

    background:
        url("/background.jpg") center / cover no-repeat,
        #101113;

    z-index: -2;
}

.auth-overlay {
    position: fixed;
    inset: 0;

    background: linear-gradient(
        110deg,
        rgba(9,10,12,0.95),
        rgba(12,13,16,0.78),
        rgba(9,10,12,0.96)
    );

    backdrop-filter: blur(5px);

    z-index: -1;
}

/* HEADER */

.auth-header,
.dashboard-header {
    width: 100%;
    min-height: 85px;

    padding: 20px 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-bottom: 1px solid rgba(255,255,255,0.07);

    background: rgba(15,16,19,0.75);
}

.brand {
    font-size: 24px;
    font-weight: 900;

    letter-spacing: -1.5px;

    white-space: nowrap;
}

.brand span {
    color: #aaa;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #b5b5ba;

    font-size: 10px;
    font-weight: 800;

    transition: color 0.3s;
}

.back-link:hover {
    color: white;
}

/* AUTH LAYOUT */

.auth-layout {
    width: min(1300px, 90%);

    min-height: calc(100vh - 85px);

    margin: auto;

    display: grid;
    grid-template-columns: 1fr 440px;

    align-items: center;

    gap: 90px;

    padding: 65px 0;
}

/* INTRO */

.auth-intro {
    animation: introAppear 0.9s ease both;
}

.intro-badge {
    display: inline-block;

    padding: 12px 16px;

    border: 1px solid #414248;
    border-radius: 5px;

    color: #c5c5ca;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 35px;
}

.auth-intro h1 {
    font-size: clamp(40px, 5vw, 67px);

    line-height: 1.18;
    letter-spacing: -3px;

    font-weight: 900;
}

.auth-intro h1 span {
    color: #a6a6ab;
}

.auth-intro > p {
    max-width: 560px;

    margin-top: 28px;

    color: #a8a8ae;

    font-size: 14px;
    line-height: 2;
}

.intro-line {
    width: 65px;
    height: 3px;

    background: #bcbcbc;

    margin: 35px 0;
}

.intro-feature {
    display: flex;
    align-items: center;

    gap: 13px;

    margin: 20px 0;

    color: #c0c0c5;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;
}

.feature-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #c5c5c5;
}

/* AUTH CARD */

.auth-card {
    position: relative;

    padding: 40px;

    background: rgba(27,28,32,0.96);

    border: 1px solid #393a40;
    border-radius: 12px;

    box-shadow: 0 25px 80px rgba(0,0,0,0.35);

    overflow: hidden;

    animation: cardAppear 0.9s ease both;
}

.card-topline {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #c0c0c0,
        transparent
    );
}

.card-heading {
    text-align: center;
    margin-bottom: 35px;
}

.card-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 23px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #292a2f;

    border: 1px solid #45464b;
    border-radius: 12px;

    color: #dedede;
}

.card-icon svg {
    width: 31px;
    height: 31px;
}

.card-label {
    display: block;

    margin-bottom: 13px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 3px;

    color: #a5a5aa;
}

.card-heading h2 {
    font-size: 25px;
    font-weight: 900;

    margin-bottom: 12px;
}

.card-heading p {
    color: #96969d;

    font-size: 12px;
    line-height: 1.7;
}

/* FORM */

.auth-form {
    display: flex;
    flex-direction: column;

    gap: 21px;
}

.form-group label {
    display: block;

    margin-bottom: 11px;

    color: #d3d3d7;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;

    display: flex;
    align-items: center;
}

.input-wrapper > svg {
    position: absolute;

    left: 16px;

    width: 19px;
    height: 19px;

    color: #929298;

    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 54px;

    padding: 0 50px;

    background: var(--input);

    border: 1px solid #393a40;
    border-radius: 6px;

    outline: none;

    color: white;

    font-size: 12px;

    transition: 0.3s;
}

.input-wrapper input::placeholder {
    color: #77777f;
}

.input-wrapper input:focus {
    border-color: #a7a7ad;

    box-shadow: 0 0 0 3px rgba(190,190,190,0.07);
}

/* PASSWORD */

.password-toggle {
    position: absolute;

    right: 13px;

    padding: 7px;

    background: transparent;
    border: none;

    color: #999;
}

.password-toggle:hover {
    color: white;
}

/* MESSAGES */

.form-message {
    display: none;

    padding: 14px;

    border-radius: 5px;

    font-size: 11px;
    line-height: 1.7;
}

.form-message.error {
    display: block;

    background: rgba(231,132,132,0.09);

    border: 1px solid rgba(231,132,132,0.3);

    color: var(--error);
}

.form-message.success {
    display: block;

    background: rgba(128,201,154,0.09);

    border: 1px solid rgba(128,201,154,0.3);

    color: var(--success);
}

/* BUTTONS */

.submit-btn {
    width: 100%;
    min-height: 54px;

    padding: 15px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    background: #d0d0d0;

    color: #111;

    border: none;
    border-radius: 6px;

    font-size: 11px;
    font-weight: 900;

    text-align: center;

    transition: 0.3s;
}

.submit-btn:hover:not(:disabled) {
    background: white;

    transform: translateY(-2px);

    box-shadow: 0 10px 30px rgba(255,255,255,0.1);
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.auth-divider {
    display: flex;
    align-items: center;

    gap: 13px;

    margin: 28px 0;

    color: #85858c;

    font-size: 9px;
    font-weight: 800;

    white-space: nowrap;
}

.auth-divider::before,
.auth-divider::after {
    content: "";

    flex: 1;
    height: 1px;

    background: #38393e;
}

.secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 15px;

    border: 1px solid #55565c;
    border-radius: 6px;

    color: #ddd;

    font-size: 11px;
    font-weight: 800;

    transition: 0.3s;
}

.secondary-btn:hover {
    border-color: #aaa;
    background: #2a2b30;
}

.card-footer {
    margin-top: 35px;

    text-align: center;

    color: #696970;

    font-size: 10px;
}

.input-hint {
    display: block;

    margin-top: 9px;

    color: #85858c;

    font-size: 10px;
    line-height: 1.6;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    color: #b0b0b6;

    font-size: 11px;
    line-height: 1.7;
}

/* DASHBOARD */

.dashboard-body {
    background: #111215;
}

.dashboard-header-actions {
    display: flex;
    align-items: center;

    gap: 25px;
}

.dashboard-label {
    color: #999;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;
}

.logout-btn {
    padding: 12px 18px;

    background: transparent;

    border: 1px solid #55565c;
    border-radius: 5px;

    color: white;

    font-size: 10px;
    font-weight: 800;

    transition: 0.3s;
}

.logout-btn:hover {
    background: white;
    color: #111;
}

.dashboard-main {
    width: min(1300px, 90%);

    margin: 75px auto;
}

.dashboard-welcome {
    margin-bottom: 45px;
}

.section-label {
    display: block;

    margin-bottom: 17px;

    color: #a0a0a5;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 3px;
}

.dashboard-welcome h1 {
    font-size: clamp(25px, 4vw, 40px);

    font-weight: 900;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

.dashboard-welcome h1 span {
    color: #aaa;
}

.dashboard-welcome p {
    margin-top: 13px;

    color: #999;

    font-size: 13px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 25px;
}

.dashboard-panel {
    padding: 35px;

    background: #1b1c20;

    border: 1px solid #323339;
    border-radius: 10px;
}

.panel-heading {
    padding-bottom: 25px;
    margin-bottom: 25px;

    border-bottom: 1px solid #34353a;
}

.panel-heading h2 {
    font-size: 14px;
    font-weight: 800;
}

.account-info {
    display: flex;
    flex-direction: column;

    gap: 23px;
}

.info-row {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    font-size: 12px;
}

.info-row span {
    color: #999;
}

.info-row strong {
    color: #ddd;

    text-align: right;

    overflow-wrap: anywhere;
}

.empty-state {
    padding: 25px 5px;

    text-align: center;
}

.empty-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #292a2f;

    border: 1px solid #414248;
    border-radius: 12px;

    color: #aaa;
}

.empty-icon svg {
    width: 35px;
    height: 35px;
}

.empty-state h3 {
    font-size: 13px;

    line-height: 1.6;

    margin-bottom: 15px;
}

.empty-state p {
    color: #999;

    font-size: 12px;
    line-height: 1.9;
}

.dashboard-loading {
    padding: 100px 20px;

    text-align: center;

    color: #aaa;

    font-size: 13px;
}

/* APPLICATION */

.application-main {
    width: min(1000px, 90%);

    margin: 80px auto 120px;
}

.application-heading {
    text-align: center;

    margin-bottom: 50px;
}

.application-heading h1 {
    font-size: clamp(30px, 5vw, 48px);

    margin: 20px 0;

    font-weight: 900;
}

.application-heading h1 span {
    color: #aaa;
}

.application-heading p {
    max-width: 650px;

    margin: auto;

    color: #999;

    font-size: 13px;
    line-height: 2;
}

.application-progress {
    padding: 25px;

    margin-bottom: 30px;

    background: #1b1c20;

    border: 1px solid #34353a;
    border-radius: 10px;
}

.progress-info {
    display: flex;
    justify-content: space-between;

    color: #aaa;

    font-size: 10px;
    font-weight: 800;

    margin-bottom: 15px;
}

.progress-track {
    height: 6px;

    background: #303136;

    border-radius: 10px;

    overflow: hidden;
}

#progressBar {
    height: 100%;
    width: 0;

    background: #d0d0d0;

    transition: width 0.3s;
}

.question-card {
    padding: 35px;

    margin-bottom: 20px;

    background: #1b1c20;

    border: 1px solid #34353a;
    border-radius: 10px;
}

.question-number {
    color: #aaa;

    font-size: 10px;
    font-weight: 800;

    margin-bottom: 12px;
}

.question-category {
    color: #888;

    font-size: 11px;

    margin-bottom: 15px;
}

.question-card h3 {
    font-size: 15px;

    line-height: 1.8;

    margin-bottom: 25px;
}

.question-card textarea {
    width: 100%;
    min-height: 150px;

    padding: 20px;

    background: #25262b;

    border: 1px solid #3a3b40;
    border-radius: 7px;

    color: white;

    font-size: 12px;
    line-height: 1.9;

    resize: vertical;
    outline: none;
}

.question-card textarea:focus {
    border-color: #aaa;
}

.application-actions {
    margin: 30px 0;
}

/* STATUS */

.status-main {
    width: min(800px, 90%);

    margin: 70px auto;
}

.status-card {
    padding: 45px;

    background: #1b1c20;

    border: 1px solid #34353a;
    border-radius: 12px;

    text-align: center;
}

.status-icon {
    width: 75px;
    height: 75px;

    margin: 0 auto 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #292a2f;

    border-radius: 50%;

    font-size: 28px;
}

.status-card h1 {
    font-size: 28px;

    margin: 20px 0;
}

.status-card > p {
    color: #aaa;

    font-size: 13px;
    line-height: 2;
}

.status-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    margin: 35px 0;
}

.status-details > div {
    padding: 20px;

    background: #25262b;

    border-radius: 7px;
}

.status-details span {
    display: block;

    color: #888;

    font-size: 10px;

    margin-bottom: 10px;
}

.status-details strong {
    font-size: 13px;
}

.rejection-box {
    margin: 30px 0;

    padding: 25px;

    background: rgba(190,75,75,0.07);

    border: 1px solid rgba(190,75,75,0.3);
    border-radius: 7px;

    text-align: left;
}

.rejection-box h3 {
    color: #e79a9a;

    font-size: 12px;

    margin-bottom: 15px;
}

.rejection-box p {
    color: #ccc;

    font-size: 12px;
    line-height: 1.9;
}

.ucp-feedback-card {
    margin-top: 20px;

    padding: 20px;

    background: #25262b;

    border-radius: 7px;
}

.ucp-feedback-card strong {
    display: block;

    font-size: 12px;

    margin-bottom: 12px;
}

.ucp-feedback-card p {
    margin-top: 10px;
}

.history-container {
    margin-top: 45px;

    text-align: left;
}

.history-container h3 {
    font-size: 14px;

    margin-bottom: 20px;
}

.ucp-history-row {
    display: flex;
    justify-content: space-between;

    gap: 15px;

    padding: 18px;

    margin-bottom: 10px;

    background: #25262b;

    border: 1px solid #36373c;
    border-radius: 6px;

    font-size: 11px;
}

.ucp-history-row span {
    color: #aaa;
}

.status-actions {
    margin-top: 25px;
}

/* ANIMATIONS */

@keyframes introAppear {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .auth-layout {
        grid-template-columns: 1fr;

        gap: 55px;

        max-width: 600px;
    }

    .auth-intro {
        text-align: center;
    }

    .auth-intro > p {
        margin-left: auto;
        margin-right: auto;
    }

    .intro-line {
        margin-left: auto;
        margin-right: auto;
    }

    .intro-feature {
        justify-content: center;
    }
}

@media (max-width: 750px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-label {
        display: none;
    }
}

@media (max-width: 600px) {
    .question-card,
    .status-card {
        padding: 25px 20px;
    }

    .status-details {
        grid-template-columns: 1fr;
    }

    .ucp-history-row {
        flex-direction: column;
    }
}

@media (max-width: 500px) {
    .auth-header,
    .dashboard-header {
        padding: 20px 5%;
    }

    .brand {
        font-size: 19px;
    }

    .back-link {
        font-size: 9px;
    }

    .auth-layout {
        width: 92%;
        padding: 45px 0;
    }

    .auth-intro h1 {
        font-size: 39px;
    }

    .auth-card {
        padding: 30px 22px;
    }

    .dashboard-panel {
        padding: 25px 20px;
    }

    .info-row {
        flex-direction: column;
        gap: 7px;
    }

    .info-row strong {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}