* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    color-scheme: light;
    background-color: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    background: #FFFFFF;
    color: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    min-height: 100vh;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.content {
    background: #FFFFFF;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
}

.back-button {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #F5F5F5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    transition: background 0.2s ease;
}

.back-button:hover {
    background: #E8E8E8;
}

.back-button:active {
    background: #D8D8D8;
}

.icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #000000;
    text-align: center;
}

.subtitle {
    font-size: 0.9375rem;
    color: #666666;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    color: #999999;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-radius: 16px;
    border: none;
    background: #F5F5F5;
    font-family: inherit;
    transition: background 0.2s ease;
    color: #000000;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    background: #EBEBEB;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: #CCCCCC;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: #999999;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #666666;
}

.forgot-password {
    display: block;
    text-align: left;
    color: #666666;
    font-size: 0.9375rem;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #000000;
}

button[type="submit"],
.primary-button {
    width: 100%;
    padding: 1.125rem;
    background: #000000;
    color: #FFFFFF;
    font-size: 1rem;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

button[type="submit"]:hover,
.primary-button:hover {
    background: #1A1A1A;
    transform: translateY(-1px);
}

button[type="submit"]:active,
.primary-button:active {
    transform: translateY(0);
}

.amount-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    padding: 2rem;
    background: #F5F5F5;
    border-radius: 24px;
}

.currency {
    font-size: 2rem;
    font-weight: 600;
    color: #5B82FF;
    margin-right: 0.5rem;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #5B82FF;
    font-family: inherit;
}

.message {
    font-size: 0.9375rem;
    color: #666666;
    line-height: 1.6;
    font-weight: 400;
    text-align: center;
    margin-top: 1rem;
}

.result-message {
    margin-top: 1.5rem;
    color: #28a745;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

.error-message {
    color: #FF3B30;
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
}

.loading {
    margin-top: 1.5rem;
    color: #666666;
    font-size: 1rem;
    text-align: center;
}

/* Success page specific styles */
.complete .amount-container {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
}

.complete .currency,
.complete .amount {
    color: #28a745;
}

/* Screenout page specific styles */
.screenout .amount-container {
    background: #F5F5F5;
}

.screenout .currency,
.screenout .amount {
    color: #999999;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .content {
        padding: 1.5rem 1rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.875rem;
    }

    .amount {
        font-size: 2.5rem;
    }

    .icon {
        font-size: 3rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }

    button[type="submit"],
    .primary-button {
        padding: 1rem;
        font-size: 0.9375rem;
    }
}