:root {
    --primary: #3375BB;
    --secondary: #05C0A5;
    --primary-dark: #06C0A5;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #f5f6fa;
    --gray: #2d2d2d;
    --light-gray: #3d3d3d;
    --success: #00b894;
}

body {
    background-color: var(--darker);
    color: var(--light);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.app-header {
    padding: 30px 0 20px;
    text-align: center;
}

.app-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
}

.app-title {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.app-subtitle {
    color: var(--secondary);
    font-size: 0.95rem;
    opacity: 0.8;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
    max-width: 400px;
    margin: 0 auto;
}

.form-step.active {
    display: block;
}

.input-field {
    margin-bottom: 20px;
    position: relative;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 500;
}

.input-control {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    background-color: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.2s;
}

.input-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.3);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    height: 50px;
    border-radius: 12px;
    font-weight: 600;
    width: 100%;
    font-size: 1rem;
    margin-top: 10px;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary);
    border: 1px solid var(--light-gray);
    height: 40px;
    border-radius: 12px;
    font-weight: 500;
    width: 100%;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.step {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray);
    transition: all 0.3s;
}

.step.active {
    background: var(--primary);
    transform: scale(1.2);
}

select.input-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.phone-input {
    display: flex;
}

.phone-prefix {
    width: 80px;
    height: 50px;
    background-color: var(--gray);
    border: 1px solid var(--light-gray);
    border-right: none;
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--secondary);
}

.phone-number {
    border-radius: 0 12px 12px 0;
}

.terms-check {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.terms-check input {
    margin-right: 10px;
    accent-color: var(--primary);
}

.terms-text {
    font-size: 0.85rem;
    color: var(--light);
    opacity: 0.8;
}

.terms-text a {
    color: var(--secondary);
    text-decoration: none;
}

/* PIN Input Styles */
.pin-container {
    display: flex;
    justify-content: space-evenly;
    margin: 20px 0;
}

.pin-input {
    width: 55px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    background-color: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    color: var(--light);
    transition: all 0.2s;
}

.pin-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.3);
}

.pin-instructions {
    font-size: 0.8rem;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* App-like bottom padding */
.form-container {
    padding-bottom: 40px;
}
/* Toast customization */
.toast {
    min-width: 350px;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.toast-header .btn-close {
    filter: invert(1);
}

/* Spinner button state */
.btn-spinner {
    position: relative;
}

.btn-spinner .spinner-border {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -0.75rem;
    margin-top: -0.75rem;
}