*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.runo-auth {
    background: #0a0a0a;
    color: #fff;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.runo-auth-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 32px;
}

.runo-auth-card {
    width: 100%;
    max-width: 420px;
}

.runo-auth-logo {
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.runo-auth-logo img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 16px;
}

.runo-auth-title {
    margin: 0 0 10px;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.runo-auth-subtitle {
    margin: 0 0 28px;
    text-align: center;
    color: #9a9a9a;
    font-size: 14px;
    line-height: 1.45;
}

.runo-auth-errors {
    margin: 0 0 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(220, 53, 69, 0.15);
    color: #ff8a8a;
    font-size: 13px;
}

.runo-auth-errors ul {
    margin: 0;
    padding-left: 18px;
}

.runo-auth-segment {
    display: flex;
    height: 52px;
    padding: 4px;
    margin-bottom: 24px;
    background: #141414;
    border-radius: 999px;
    position: relative;
}

.runo-auth-segment-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: calc(50% - 4px);
    background: #3a3a3a;
    border-radius: 999px;
    transition: left 0.22s cubic-bezier(0.33, 1, 0.68, 1);
    left: 4px;
}

.runo-auth-segment.is-register .runo-auth-segment-indicator {
    left: calc(50%);
}

.runo-auth-segment a {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #9a9a9a;
    font-weight: 600;
    font-size: 15px;
}

.runo-auth-segment a.is-active {
    color: #fff;
}

.runo-auth-field {
    margin-bottom: 14px;
}

.runo-auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 500;
}

.runo-auth-input-wrap {
    position: relative;
}

.runo-auth-input {
    width: 100%;
    height: 54px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    background: #1c1c1c;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.runo-auth-input:focus {
    box-shadow: 0 0 0 1.2px #e94b7a;
}

.runo-auth-input-wrap.has-toggle .runo-auth-input {
    padding-right: 52px;
}

.runo-auth-toggle-pw {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #9a9a9a;
    cursor: pointer;
    padding: 6px;
    line-height: 0;
}

.runo-auth-options {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 22px;
    font-size: 13px;
    color: #9a9a9a;
}

.runo-auth-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e94b7a;
}

.runo-auth-forgot {
    margin-left: auto;
    color: #e57373;
    text-decoration: none;
    font-weight: 600;
}

.runo-auth-forgot:hover {
    text-decoration: underline;
}

.runo-auth-swipe {
    position: relative;
    height: 58px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e94b7a 0%, #ff6b9a 100%);
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

.runo-auth-swipe-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 56px 0 58px;
    font-weight: 700;
    font-size: 16px;
    pointer-events: none;
}

.runo-auth-swipe-arrows {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    letter-spacing: -2px;
    pointer-events: none;
}

.runo-auth-swipe-handle {
    position: absolute;
    left: 6px;
    top: 6px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 2;
    transition: left 0.08s linear;
}

.runo-auth-swipe-handle:active {
    cursor: grabbing;
}

.runo-auth-swipe-handle svg {
    width: 22px;
    height: 22px;
    fill: #e94b7a;
}

.runo-auth-swipe.is-complete .runo-auth-swipe-handle {
    cursor: default;
}

.runo-auth-fallback {
    display: none;
}

.runo-auth-divider {
    margin: 28px 0 18px;
    text-align: center;
    color: #9a9a9a;
    font-size: 14px;
}

.runo-auth-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.runo-auth-social a {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 22px;
}

.runo-auth-social .fb {
    background: #1877f2;
    color: #fff;
    font-family: Georgia, serif;
}

.runo-auth-social .google {
    background: #1c1c1c;
    color: #4285f4;
}

.runo-auth-social .apple {
    background: #1c1c1c;
    color: #fff;
    font-size: 26px;
}

.runo-auth-panel {
    display: none;
}

.runo-auth-panel.is-active {
    display: block;
}

@media (max-width: 380px) {
    .runo-auth-title {
        font-size: 22px;
    }
}
