/* ========================================
   EASTEL MOBILE - REGISTRATION SYSTEM
   Mobile-First Responsive Design
   ======================================== */

/* ========== CSS VARIABLES (Colors & Spacing) ========== */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --success: #22c55e;
    --text-dark: #111827;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* ========== WELCOME SCREEN ========== */
.welcome-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.welcome-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 90vw;
    width: 100%;
}

/* Animated Background Blobs */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: float 15s infinite ease-in-out;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.3);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    bottom: -50px;
    right: -50px;
    animation-delay: 5s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.25);
    bottom: 100px;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(20px) translateX(10px);
    }
}

.welcome-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px 30px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 0 auto;
    animation: slideUp 0.8s ease-out;
}

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

.brand-section {
    margin-bottom: 30px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.logo-text {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    line-height: 1;
}

.logo-subtext {
    font-size: 18px;
    color: var(--text-light);
    letter-spacing: 4px;
    font-weight: 600;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 20px 0 10px;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 18px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.welcome-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Features Row */
.features {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 80px;
}

.feature-icon {
    font-size: 32px;
    animation: bounce 2s infinite;
}

.feature-icon:nth-child(1) { animation-delay: 0s; }
.feature-icon:nth-child(2) { animation-delay: 0.2s; }
.feature-icon:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.feature-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.loading-indicator {
    margin-top: 40px;
}

.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(38, 99, 235, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-height: 48px;
    touch-action: manipulation;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
    width: 100%;
    max-width: 300px;
}

/* ========== FORM SCREEN ========== */
.form-container {
    width: 100%;
    max-width: 600px;
    background: var(--bg-white);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.6s ease-out;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-logo {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-light);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.4s ease;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.step-indicator.active {
    opacity: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.step-indicator.active .step-number {
    background: var(--primary);
    color: white;
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

/* Form Styles */
.registration-form {
    width: 100%;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.required {
    color: var(--danger);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
}

.form-input:valid:not(:placeholder-shown) {
    border-color: var(--secondary);
}

select.form-input {
    cursor: pointer;
    padding-right: 40px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 36px;
}

.form-error {
    display: block;
    font-size: 13px;
    color: var(--danger);
    margin-top: 6px;
    font-weight: 500;
    min-height: 19px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.form-actions .btn {
    flex: 1;
}

.form-actions .btn-secondary {
    min-width: 100px;
}

/* Review Section */
.review-section {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
}

.review-group {
    margin-bottom: 25px;
}

.review-group:last-child {
    margin-bottom: 0;
}

.review-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.review-value {
    font-size: 14px;
    color: var(--text-light);
    text-align: right;
    word-break: break-word;
}

.privacy-notice {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--secondary);
    padding: 15px;
    border-radius: 8px;
    margin-top: 25px;
}

.privacy-notice p {
    font-size: 13px;
    color: var(--text-dark);
    margin: 8px 0;
    line-height: 1.5;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    #app {
        padding: 0;
        min-height: 100vh;
    }

    .welcome-container {
        min-height: 100vh;
        padding: 20px;
    }

    .welcome-box {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .logo-text {
        font-size: 40px;
    }

    .welcome-title {
        font-size: 28px;
    }

    .welcome-subtitle {
        font-size: 16px;
    }

    .btn-large {
        padding: 14px 30px;
        font-size: 16px;
    }

    .form-container {
        padding: 20px 16px;
        border-radius: 16px;
        max-width: 100%;
    }

    .form-header {
        margin-bottom: 30px;
    }

    .form-logo {
        font-size: 24px;
    }

    .form-title {
        font-size: 24px;
    }

    .step-title {
        font-size: 18px;
    }

    .step-indicators {
        gap: 8px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .step-label {
        font-size: 11px;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 16px;
    }

    .review-section {
        padding: 15px;
    }

    .review-label,
    .review-value {
        font-size: 13px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .welcome-box {
        padding: 30px 15px;
        border-radius: 16px;
    }

    .logo-text {
        font-size: 36px;
    }

    .welcome-title {
        font-size: 24px;
        margin: 15px 0 8px;
    }

    .welcome-subtitle {
        font-size: 14px;
    }

    .features {
        margin-bottom: 30px;
    }

    .form-container {
        padding: 16px 12px;
    }

    .form-header {
        margin-bottom: 25px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-input {
        padding: 12px 12px;
        font-size: 16px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .step-label {
        font-size: 10px;
    }

    .btn {
        min-height: 44px;
    }
}

/* ========== DARK MODE (Optional) ========== */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f3f4f6;
        --text-light: #d1d5db;
        --bg-light: #1f2937;
        --bg-white: #111827;
        --border: #374151;
    }

    body {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }

    .welcome-box {
        background: rgba(17, 24, 39, 0.95);
    }

    .form-container {
        background: #111827;
    }

    .form-input {
        background: #1f2937;
        color: var(--text-dark);
        border-color: var(--border);
    }

    .form-input:focus {
        border-color: var(--primary);
    }

    select.form-input {
        background-color: #1f2937;
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%9ca3af'%3E%3Cpath fill-rule='evenodd' d='M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    }

    .review-section {
        background: #1f2937;
    }

    .review-item {
        border-bottom-color: var(--border);
    }
}
