:root {
    --primary: #0f96ff;
    --primary-dark: #0b6ec2;
    --accent: #ffb347;
    --bg: #f5f7fb;
    --text: #1c2a39;
    --muted: #5f7387;
    --card-shadow: 0 18px 45px rgba(15, 150, 255, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero {
    background: linear-gradient(135deg, rgba(15, 150, 255, 0.92), rgba(11, 110, 194, 0.92)),
        url("https://images.unsplash.com/photo-1502920514313-52581002a659?auto=format&fit=crop&w=1600&q=80") center/cover;
    padding: 3.5rem 1.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(18deg);
}

.hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand img {
    width: 82px;
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

.brand h1 {
    margin: 0;
    font-size: 2.2rem;
    letter-spacing: 0.04em;
}

.tagline {
    max-width: 580px;
    font-size: 1.1rem;
    opacity: 0.92;
}

.main-content {
    max-width: 1120px;
    margin: -120px auto 4rem;
    padding: 0 1.5rem;
    width: 100%;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.card {
    background: #ffffff;
    border-radius: 22px;
    padding: 2.25rem;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -140px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at center, rgba(15, 150, 255, 0.2), rgba(15, 150, 255, 0));
    transform: rotate(24deg);
}

.card h2 {
    margin-top: 0;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.card p {
    margin-top: 0;
    color: var(--muted);
}

.requirements-list,
.highlights-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 1rem;
}

.requirements-list li,
.highlights-list li {
    background: rgba(15, 150, 255, 0.08);
    border-left: 4px solid var(--primary);
    padding: 1rem 1rem 1rem 1.25rem;
    border-radius: 14px;
    color: var(--text);
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

form {
    display: grid;
    gap: 1rem;
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--muted);
}

input[type="text"],
input[type="tel"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(12, 60, 105, 0.15);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fdfdfd;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="file"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 150, 255, 0.18);
}

input[type="file"] {
    padding: 0.75rem;
    cursor: pointer;
}

.button {
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(120deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 150, 255, 0.25);
}

.button:active {
    transform: translateY(0);
}

.button.is-loading {
    opacity: 0.75;
    cursor: progress;
    pointer-events: none;
    padding-right: 3rem;
}

.button.is-loading::after {
    content: '';
    position: absolute;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #ffffff;
    animation: button-spin 0.75s linear infinite;
    right: 1.5rem;
}

@keyframes button-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.message {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.message.error {
    background: rgba(255, 70, 70, 0.12);
    border: 1px solid rgba(255, 70, 70, 0.25);
    color: #a01616;
}

.message.success {
    background: rgba(60, 180, 75, 0.12);
    border: 1px solid rgba(60, 180, 75, 0.25);
    color: #1b6b28;
}

.footer {
    margin-top: auto;
    padding: 2rem 1.5rem 3rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer strong {
    color: var(--primary-dark);
}

.dashboard-wrapper {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.dashboard-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 2rem;
}

.logout-link {
    color: #ffffff;
    background: var(--primary-dark);
    padding: 0.75rem 1.3rem;
    border-radius: 999px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.app-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-card h3 {
    margin: 0;
    font-size: 1.3rem;
}

.app-card span {
    color: var(--muted);
    font-size: 0.98rem;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
}

.empty-state {
    background: rgba(15, 150, 255, 0.1);
    border: 1px dashed rgba(15, 150, 255, 0.35);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    font-weight: 600;
}

.login-card {
    max-width: 420px;
    margin: 6rem auto;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
}

.login-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

.login-card p {
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 900px) {
    .main-content {
        margin-top: -80px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-grid > .info-card {
        order: 1;
    }

    .content-grid > .form-card {
        order: 2;
    }

    .hero {
        padding: 2.75rem 1.25rem 3.5rem;
    }

    .brand h1 {
        font-size: 1.9rem;
    }
}

@media (max-width: 540px) {
    .hero {
        padding: 2.25rem 1rem 3rem;
    }

    .brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand img {
        width: 72px;
    }

    input[type="file"] {
        font-size: 0.95rem;
    }

    .button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
