:root {
    --bg: #ffffff;
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-soft: rgba(255,255,255,0.82);
    --text-faint: rgba(255,255,255,0.74);
    --button-shadow: 0 10px 30px rgba(10, 40, 65, 0.18);
    --section-shadow: 0 20px 50px rgba(23, 48, 68, 0.10);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
}

body {
    min-height: 100vh;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.top-brand {
    width: 100%;
    padding: 28px 32px 22px;
    display: flex;
    align-items: center;
    background: var(--bg);
}

.brand-logo {
    display: block;
    width: auto;
    height: 64px;
    max-width: min(100%, 340px);
    object-fit: contain;
}

.hero-panel {
    width: 100%;
    flex: 1;
    background: linear-gradient(
            to bottom,
            #6c9fc0 0%,
            #4f84a8 42%,
            #315f7f 100%
    );
    box-shadow: var(--section-shadow);
    border-top-left-radius: 56px;
    border-top-right-radius: 56px;
    color: var(--white);
    display: flex;
    justify-content: center;
}

.hero-inner {
    width: 100%;
    max-width: 1280px;
    min-height: calc(100vh - 114px);
    padding: 56px 32px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.buddy-icon-wrap {
    margin-top: 8px;
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
}

.buddy-icon-image {
    width: 124px;
    height: 124px;
    object-fit: contain;
    display: block;
}

h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.75rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.tagline {
    margin-top: 14px;
    font-size: clamp(1.1rem, 2vw, 1.65rem);
    color: var(--text-soft);
    font-weight: 400;
}

.signin-button {
    margin-top: 52px;
    width: min(100%, 460px);
    background: var(--white);
    color: #1f1f1f;
    border-radius: 18px;
    box-shadow: var(--button-shadow);
    text-decoration: none;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 78px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.signin-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(10, 40, 65, 0.24);
}

.signin-button:focus-visible {
    outline: 3px solid rgba(255,255,255,0.9);
    outline-offset: 4px;
}

.signin-badge {
    width: 56px;
    height: 56px;
    margin-left: 11px;
    border-radius: 12px;
    background: #9bb4c7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.signin-text {
    flex: 1;
    text-align: center;
    padding: 0 18px 0 10px;
    font-size: 19px;
    font-weight: 700;
}

.helper-text {
    margin-top: 28px;
    color: var(--text-faint);
    font-size: 16px;
    line-height: 1.45;
    max-width: 360px;
}

.error-message {
    margin-top: 24px;
    width: min(100%, 460px);
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(160, 34, 34, 0.22);
    border: 1px solid rgba(255,255,255,0.18);
    color: #ffffff;
    font-size: 15px;
    line-height: 1.4;
}

.transport-row {
    margin-top: auto;
    width: 100%;
    max-width: 920px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    padding-top: 68px;
}

.transport-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.96);
    font-size: 15px;
    line-height: 1.2;
}

.transport-item i {
    font-size: 2.5rem;
    line-height: 1;
    color: currentColor;
}

@media (max-width: 900px) {
    .hero-inner {
        min-height: calc(100vh - 100px);
        padding: 48px 24px 34px;
    }

    .transport-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 18px;
        max-width: 620px;
        padding-top: 52px;
    }
}

@media (max-width: 640px) {
    .top-brand {
        padding: 22px 18px 16px;
    }

    .brand-logo {
        height: 48px;
        max-width: 220px;
    }

    .hero-panel {
        border-top-left-radius: 38px;
        border-top-right-radius: 38px;
    }

    .hero-inner {
        min-height: calc(100vh - 84px);
        padding: 40px 18px 28px;
    }

    .buddy-icon-image {
        width: 104px;
        height: 104px;
    }

    .signin-button {
        min-height: 72px;
    }

    .signin-badge {
        width: 52px;
        height: 52px;
        margin-left: 10px;
    }

    .signin-text {
        font-size: 17px;
    }

    .helper-text {
        font-size: 15px;
    }

    .transport-row {
        gap: 22px 10px;
        padding-top: 42px;
    }

    .transport-item {
        font-size: 13px;
    }

    .transport-item i {
        font-size: 2.2rem;
    }
}

@media (max-width: 420px) {
    .transport-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}