:root {
    --ios-bg: #000000;
    --ios-card: rgba(28, 28, 30, 0.7);
    --ios-text: #ffffff;
    --ios-text-secondary: #8e8e93;
    --ios-blue: #007aff;
    --ios-blue-pressed: #0056b3;
    --ios-red: #ff3b30;
    --ios-green: #34c759;
    --glass-border: rgba(255, 255, 255, 0.1);
    --ios-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--ios-bg);
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 122, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(88, 86, 214, 0.1) 0px, transparent 50%);
    color: var(--ios-text);
    font-family: var(--ios-font);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 16px;
    overflow: hidden;
}

.liquid-container {
    width: 100%;
    max-width: 400px;
    background: var(--ios-card);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

h1 {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 15px;
    color: var(--ios-text-secondary);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.4;
    padding: 0 10px;
}

.step-card {
    display: none;
    opacity: 0;
    transform: scale(0.98);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.input-field {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 14px;
    padding: 16px;
    width: 100%;
    color: var(--ios-text);
    font-size: 17px;
    margin-bottom: 12px;
    transition: background 0.2s;
    outline: none;
}

.input-field:focus {
    background: rgba(255, 255, 255, 0.12);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.ios-btn {
    width: 100%;
    background: var(--ios-blue);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.ios-btn:active {
    background: var(--ios-blue-pressed);
    transform: scale(0.98);
}

.ios-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ios-btn-secondary {
    background: transparent;
    color: var(--ios-blue);
    margin-top: 12px;
}

.ios-btn-secondary:active {
    background: rgba(0, 122, 255, 0.1);
    transform: scale(0.98);
}

#error-msg {
    color: var(--ios-red);
    font-size: 14px;
    text-align: center;
    margin-top: 16px;
    min-height: 20px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.success-icon {
    width: 70px;
    height: 70px;
    background: rgba(52, 199, 89, 0.15);
    color: var(--ios-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    margin: 0 auto 24px;
}

.footer-disclaimer {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
}

/* Modal-like appearance for input groups */
.input-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
    margin-left: 4px;
    font-weight: 500;
}