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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #f3f4f6;
    min-height: 100vh;
}

.header {
    background-color: #17202D;
    color: white;
    padding: 0 1rem;
}

.header-content {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    border-top: 1px solid #374151;
    padding: 1rem 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

.nav-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-btn:hover {
    color: #d1d5db;
}

.language-selector {
    background-color: #334155;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.form-container {
    width: 100%;
    max-width: 28rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subtitle {
    color: #6b7280;
    text-align: center;
    font-size: 0.75rem;
    margin-bottom: 2rem;
}

.input-group {
    position: relative;
    margin-bottom: 0.75rem;
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    color: #d1d5db;
    width: 1rem;
    height: 1rem;
    transition: color 0.2s;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
.form-input {
    width: 100%;
    padding: 0.625rem 0.75rem 0.625rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
.form-input:focus {
    outline: none;
    border-color: #55DC74;
    box-shadow: 0 0 0 3px rgba(85, 220, 116, 0.1);
}

.eye-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
}

.eye-toggle:hover {
    color: #6b7280;
}

.btn {
    width: 100%;
    padding: 0.625rem 2rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: #55DC74;
    color: #17202D;
}

.btn-primary:hover:not(:disabled),
.btn-primary:focus:not(:disabled) {
    background-color: #44CB63;
    color: #17202D;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-outline {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-outline:hover {
    background-color: #f9fafb;
}

.divider {
    position: relative;
    margin: 2rem 0 1.5rem;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e7eb;
}

.divider span {
    position: relative;
    background: white;
    padding: 0 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.verification-inputs {
    display: flex;
    justify-content: center;
    gap: clamp(0.375rem, 2vw, 0.625rem);
    margin-bottom: 1.5rem;
    width: 100%;
}

.verification-input {
    width: clamp(3.25rem, 8vw, 3.5rem);
    height: clamp(3.15rem, 8vw, 3.5rem);
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    font-weight: 600;
    padding: 0;
    line-height: 1;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    flex: 1 1 0;
    min-width: 2.5rem;
}

.verification-input:focus {
    outline: none;
    border-color: #55DC74;
    box-shadow: 0 0 0 3px rgba(85, 220, 116, 0.1);
}

.verification-input:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 1rem;
}

.field-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    padding-left: 2.5rem;
    display: block;
}

.input-group.error input,
.input-group.error .form-input,
.input-group.error .phone-field {
    border-color: #dc2626;
}

.input-group.error .input-icon {
    color: #dc2626;
}

/* Fix icon alignment when error message pushes content */
.input-group.error .input-icon {
    top: 0.75rem !important;
}

.resend-btn {
    background: none;
    border: none;
    color: #5d6b6e;
    cursor: pointer;
    font-size: 0.875rem;
    text-align: right;
    display: block;
    margin-left: auto;
}

.resend-btn:hover:not(:disabled) {
    text-decoration: underline;
}

.resend-btn:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.button-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-back {
    flex: 0 0 auto;
    width: auto;
    padding: 0.625rem 1.5rem;
}

.btn-continue {
    flex: 1;
}

.password-strength {
    margin-bottom: 0.75rem;
}

.strength-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.strength-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.strength-value {
    font-size: 0.75rem;
    font-weight: 500;
}

.strength-bar {
    width: 100%;
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    transition: width 0.3s, background-color 0.3s;
}

.strength-feedback {
    font-size: 0.75rem;
    color: #6b7280;
}

.checkbox-group {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.checkbox-label a {
    color: #5d6b6e;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background-color: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 2rem;
    height: 2rem;
    color: #44CB63;
}

.error-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background-color: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon svg {
    width: 2rem;
    height: 2rem;
    color: #dc2626;
}

.info-box {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.info-box p {
    color: #4a5558;
    font-size: 0.875rem;
}

.text-link {
    background: none;
    border: none;
    color: #5d6b6e;
    cursor: pointer;
    font-size: 0.875rem;
}

.text-link:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

.phone-field {
    display: flex;
    width: 100%;
    height: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: border-color 0.2s;
    padding-left: 2.5rem;
}

.phone-field:focus-within {
    border-color: #55DC74;
    box-shadow: 0 0 0 3px rgba(85, 220, 116, 0.1);
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0 0.15rem;
    border-right: 1px solid #d1d5db;
    cursor: pointer;
    color: #374151;
    min-width: 4.5rem;
    font-size: 0.7125rem;
}

.phone-field input {
    border: none;
    flex: 1;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    height: 100%;
}

.phone-field input:focus {
    outline: none;
}

.country-flag {
    font-size: 1.25rem;
}

.dropdown-arrow {
    color: #9ca3af;
    margin-left: 0.1rem;
    width: 0.75rem;
    height: 0.75rem;
}

.phone-field input {
    border: none;
    flex: 1;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
}

.phone-field input:focus {
    outline: none;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    margin-top: 0.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 10;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.country-option:hover {
    background-color: #f9fafb;
}

.country-option-flag {
    font-size: 1.25rem;
}

.country-option-name {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
}

.country-option-dial {
    font-size: 0.875rem;
    color: #6b7280;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 0.8s linear infinite;
}