@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

body {
    background: #080c08;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.register-card {
    background: #0e160e;
    border: 1px solid rgba(34, 197, 94, 0.08);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(34, 197, 94, 0.04);
    padding: 32px 28px;
    max-width: 520px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.register-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.04), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.input-field {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    color: #fff;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
}

.input-field:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.input-field.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.input-field.success {
    border-color: #22c55e;
}

.input-field option {
    background: #0e160e;
    color: #fff;
}

/* ===== SMART COUNTRY SELECT ===== */
.phone-group {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

.phone-group .country-select-wrapper {
    position: relative;
    flex: 0 0 120px;
}

.phone-group .country-select-wrapper .country-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: #fff;
    padding: 12px 32px 12px 12px;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.phone-group .country-select-wrapper .country-select:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}

.phone-group .country-select-wrapper .country-select option {
    background: #0e160e;
    color: #fff;
    padding: 8px;
}

.phone-group .country-select-wrapper .select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    font-size: 12px;
}

.phone-group .country-select-wrapper .select-search {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0e160e;
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    padding: 8px;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.phone-group .country-select-wrapper .select-search.show {
    display: block;
}

.phone-group .country-select-wrapper .select-search input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    outline: none;
    margin-bottom: 6px;
}

.phone-group .country-select-wrapper .select-search input:focus {
    border-color: #22c55e;
}

.phone-group .country-select-wrapper .select-search .search-item {
    padding: 8px 12px;
    border-radius: 6px;
    color: #d1d5db;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-group .country-select-wrapper .select-search .search-item:hover {
    background: rgba(34, 197, 94, 0.08);
    color: #fff;
}

.phone-group .country-select-wrapper .select-search .search-item .code {
    color: #22c55e;
    font-weight: 600;
    margin-left: auto;
}

.phone-group .country-select-wrapper .select-search .search-item .flag {
    font-size: 18px;
}

.phone-group .country-select-wrapper .select-search .search-item.highlight {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.phone-group .country-select-wrapper .select-search .search-item.pref {
    border-left: 3px solid #22c55e;
    background: rgba(34, 197, 94, 0.04);
}

.phone-group .country-select-wrapper .select-search .search-divider {
    padding: 6px 12px;
    color: #22c55e;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(34, 197, 94, 0.06);
    margin-bottom: 4px;
}

.phone-group .input-field {
    flex: 1;
}

/* ===== STEP INDICATOR ===== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.step-dot.active {
    background: #22c55e;
    border-color: rgba(34, 197, 94, 0.2);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
    transform: scale(1.2);
}

.step-dot.completed {
    background: #22c55e;
    border-color: rgba(34, 197, 94, 0.2);
}

.step-line {
    width: 32px;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
}

.step-line.completed {
    background: #22c55e;
}

.step-label {
    text-align: center;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.step-label span {
    color: #22c55e;
}

.step-content {
    display: none;
    animation: fadeSlide 0.4s ease;
}
.step-content.active {
    display: block;
}

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

.step-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.step-title i {
    color: #22c55e;
    margin-right: 8px;
}
.step-subtitle {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 20px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #000;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.25);
}

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

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    width: 100%;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.15);
}

.logo-text {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.password-strength {
    height: 3px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 8px;
}
.password-strength.weak {
    background: #ef4444;
    width: 33%;
}
.password-strength.medium {
    background: #f59e0b;
    width: 66%;
}
.password-strength.strong {
    background: #22c55e;
    width: 100%;
}

.float-bg {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}
.float-bg-1 {
    top: -150px;
    right: -150px;
    background: #22c55e;
}
.float-bg-2 {
    bottom: -150px;
    left: -150px;
    background: #16a34a;
}

.social-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    color: #d1d5db;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.social-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(34, 197, 94, 0.15);
    color: #fff;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #22c55e;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #000;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 16px;
    box-shadow: 0 12px 50px rgba(34, 197, 94, 0.25);
    z-index: 999;
    font-size: 14px;
    animation: toastIn 0.4s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}
.toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 12px 50px rgba(239, 68, 68, 0.25);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.detect-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.detect-badge .spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(34, 197, 94, 0.15);
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.detected-flag {
    font-size: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .register-card {
        padding: 24px 16px;
    }
    .step-line {
        width: 20px;
    }
    .step-title {
        font-size: 18px;
    }
    .social-btn {
        font-size: 12px;
        padding: 10px;
    }
    .btn-primary {
        font-size: 14px;
        padding: 12px;
    }
    .phone-group {
        flex-direction: column;
        gap: 8px;
    }
    .phone-group .country-select-wrapper {
        flex: 1;
        width: 100%;
    }
    .phone-group .country-select-wrapper .select-search {
        max-height: 160px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .phone-group .country-select-wrapper {
        flex: 0 0 140px;
    }
}