/* Elite Authentication Styles (Unified for all auth pages) */

body.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f5f5f7;
    background-image: radial-gradient(circle at top right, rgba(0,113,227,0.05) 0%, transparent 40%),
                      radial-gradient(circle at bottom left, rgba(0,113,227,0.05) 0%, transparent 40%);
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.elite-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    padding: 1.5rem;
    animation: cardElevate 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.elite-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 40px;
    padding: 3.5rem 3rem;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.04), 
        0 15px 25px rgba(0, 0, 0, 0.02);
    text-align: center;
}

.elite-logo-wrapper {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 100%);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.05),
        inset 0 2px 4px rgba(255,255,255,0.5),
        inset 0 -2px 4px rgba(0,0,0,0.01);
    border: 1px solid rgba(0,0,0,0.03);
}

.elite-logo {
    font-size: 3rem;
    color: #1d1d1f;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.05));
    transform: translateY(-2px);
}

.elite-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #1d1d1f;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
}

.elite-subtitle {
    font-size: 1.05rem;
    color: #86868b;
    font-weight: 500;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #86868b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 4px;
}

.elite-input-wrapper {
    display: flex;
    align-items: center;
    background: #f5f5f7;
    border: 1.5px solid transparent;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.elite-input-wrapper:focus-within {
    background: #ffffff;
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.phone-prefix {
    padding: 0 0.8rem 0 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    font-size: 1.05rem;
    border-right: 1.5px solid #e5e5ea;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    height: 24px;
    white-space: nowrap;
    flex-shrink: 0;
}

.elite-input {
    width: 100%;
    border: none !important;
    background: transparent !important;
    padding: 1.2rem 1.2rem 1.2rem 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1d1d1f;
    outline: none !important;
    box-shadow: none !important;
}

.elite-input::placeholder {
    color: #a1a1a6;
    font-weight: 500;
}

.elite-input.pl-2 { padding-left: 1.2rem; }

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #f5f5f7 inset !important;
    -webkit-text-fill-color: #1d1d1f !important;
    transition: background-color 5000s ease-in-out 0s;
}

.elite-btn {
    background: linear-gradient(180deg, #0077ed 0%, #0071e3 100%);
    color: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    padding: 1.25rem;
    width: 100%;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
    box-shadow: 
        0 15px 30px rgba(0, 113, 227, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.elite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 113, 227, 0.3);
    background: #005bb5;
}

.auth-footer { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-link { display: block; margin-bottom: 1rem; font-size: 1rem; font-weight: 600; color: #0071e3; text-decoration: none; }
.footer-link span { color: #1d1d1f; text-decoration: underline; }
.footer-link.secondary { color: #86868b; font-size: 0.9rem; }


/* Steps for kurye_register.php */
.step { display: none; animation: fadeIn 0.4s ease; }
.step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

.progress-container { margin-bottom: 2.5rem; display: flex; justify-content: space-between; position: relative; }
.progress-line { position: absolute; top: 15px; left: 0; height: 2px; background: #e5e5ea; width: 100%; z-index: 1; }
.progress-line-active { position: absolute; top: 15px; left: 0; height: 2px; background: #0071e3; width: 0%; z-index: 2; transition: width 0.3s; }
.progress-step { width: 32px; height: 32px; background: #fff; border: 2px solid #e5e5ea; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 3; font-size: 0.8rem; font-weight: 800; color: #a1a1a6; transition: all 0.3s; }
.progress-step.active { border-color: #0071e3; color: #0071e3; }
.progress-step.completed { background: #0071e3; border-color: #0071e3; color: #fff; }

.btn-step { padding: 1rem 2rem; border-radius: 20px; font-weight: 700; cursor: pointer; transition: all 0.3s; border: none; font-size: 1rem; }
.btn-next { background: linear-gradient(180deg, #0077ed 0%, #0071e3 100%); color: #fff; flex: 1; box-shadow: 0 10px 20px rgba(0,113,227,0.2); }
.btn-prev { background: #f5f5f7; color: #1d1d1f; margin-right: 10px; border: 1px solid rgba(0,0,0,0.05); }
.btn-step:disabled { opacity: 0.5; cursor: not-allowed; }

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

@media (max-width: 768px) {
    body.auth-page {
        background: #f5f5f7; /* Keep the subtle gray background */
        align-items: flex-end; /* Push content to bottom */
    }

    .elite-container {
        padding: 0;
        max-width: 100%;
        margin-top: 50px;
        animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    @keyframes slideUp {
        from { transform: translateY(100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }

    .elite-card {
        border: none;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
        padding: 2.5rem 1.5rem 3rem 1.5rem;
        border-radius: 35px 35px 0 0; /* Only top corners rounded like a modern bottom-sheet app */
        background: #ffffff;
        min-height: 80vh; /* Make it feel like an app sheet */
    }

    .elite-logo-wrapper {
        width: 72px;
        height: 72px;
        border-radius: 22px;
        margin-bottom: 1.2rem;
    }
    
    .elite-logo { font-size: 2.4rem; }
    .elite-title { font-size: 1.75rem; }
    .elite-subtitle { font-size: 0.95rem; margin-bottom: 2rem; }

    .flex-row-mobile { flex-direction: column !important; gap: 0 !important; }
    
    /* Sleek Progress Bar for Mobile (Apple-like) */
    .progress-container { 
        display: block; 
        height: 6px; 
        background: #e5e5ea; 
        border-radius: 6px; 
        overflow: hidden; 
        margin-bottom: 2.5rem; 
        padding: 0; 
    }
    .progress-step { display: none !important; }
    .progress-line { display: none !important; }
    .progress-line-active { 
        height: 100%; 
        top: 0; 
        left: 0;
        background: #0071e3; 
        position: relative; 
        width: 0%; 
        transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    }
    
    /* Huge touch-friendly buttons */
    .btn-step { padding: 1.1rem; font-size: 1.1rem; border-radius: 20px; }
    .btn-next { flex: 2; }
    .btn-prev { flex: 1; background: #f0f0f2; color: #86868b; }
    .btn-auth { padding: 1.1rem; border-radius: 20px; font-size: 1.1rem; }
    
    .elite-input { padding: 1.1rem 1.1rem 1.1rem 0.5rem; }
    
    #navButtons {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding-top: 15px;
        padding-bottom: 15px;
        margin-top: auto;
        z-index: 100;
        border-top: 1px solid rgba(0,0,0,0.03);
    }
}

/* Aliases for backward compatibility */
.input-wrapper { display: flex; align-items: center; background: #f5f5f7; border: 1.5px solid transparent; border-radius: 20px; transition: all 0.3s ease; position: relative; }
.input-wrapper:focus-within { background: #ffffff; border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15); }
.auth-input { width: 100%; border: none !important; background: transparent !important; padding: 1.2rem 1.2rem 1.2rem 0.5rem; font-size: 1.05rem; font-weight: 600; color: #1d1d1f; outline: none !important; box-shadow: none !important; }
.auth-input::placeholder { color: #a1a1a6; font-weight: 500; }
.btn-auth { background: linear-gradient(180deg, #0077ed 0%, #0071e3 100%); color: #ffffff; border: 1px solid rgba(0,0,0,0.1); border-radius: 20px; padding: 1.25rem; width: 100%; font-size: 1.15rem; font-weight: 700; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 2rem; box-shadow: 0 15px 30px rgba(0, 113, 227, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(0, 113, 227, 0.3); background: #005bb5; }

/* Custom File Upload Styles */
.file-upload-box {
    border: 2px dashed #0071e3;
    background: rgba(0, 113, 227, 0.02);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}
.file-upload-box:hover {
    background: rgba(0, 113, 227, 0.05);
}
.file-status {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.file-status i {
    font-size: 2rem;
    color: #0071e3;
}
.file-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.btn-file-option {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d1d1f;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    flex: 1;
    min-width: 90px;
    justify-content: center;
}
.btn-file-option:hover {
    background: #f5f5f7;
    border-color: #0071e3;
    color: #0071e3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,113,227,0.1);
}
.btn-file-option i {
    font-size: 1.1rem;
}
@media (max-width: 768px) {
    .btn-file-option {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
}
