/**
 * YukMobil - Kayıt Sayfası CSS
 *
 * @package YukMobil
 * @subpackage Register
 * @version 1.0.0
 */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #080B0E;
    background: #FFFFFF;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== HEADER ========== */
.register-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #E8E8E8;
}

.logo-container {
    max-width: 200px;
    margin: 0 auto;
}

.logo-container img {
    width: 100%;
    height: auto;
}

.header-tagline {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #474C51;
    letter-spacing: -0.04em;
}

/* ========== MAIN CONTENT ========== */
.register-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.register-container {
    width: 100%;
    max-width: 440px;
}

/* ========== PROGRESS STEPS ========== */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E8E8E8;
    color: #474C51;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: #FFFFFF;
}

.step.completed .step-number {
    background: #10B981;
    color: #FFFFFF;
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: #9CA3AF;
    letter-spacing: -0.04em;
}

.step.active .step-label,
.step.completed .step-label {
    color: #1E293B;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #E8E8E8;
    margin: 0 1rem;
    margin-bottom: 1.5rem;
}

/* ========== REGISTER BOX ========== */
.register-box {
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.register-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
    color: #080B0E;
    text-align: center;
    margin-bottom: 0.5rem;
}

.register-subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.04em;
    color: #474C51;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ========== STEP CONTENT ========== */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== FORM STYLES ========== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #080B0E;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #080B0E;
    background: #FFFFFF;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    transition: all 0.2s ease;
    letter-spacing: -0.04em;
}

.form-control:hover {
    border-color: #9CA3AF;
}

.form-control:focus {
    outline: none;
    border-color: #1E293B;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

.form-control::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

.form-control.is-invalid {
    border-color: #DC2626;
}

.form-control.is-valid {
    border-color: #10B981;
}

.form-hint {
    margin-top: 0.375rem;
    font-size: 12px;
    color: #6B7280;
}

/* ========== PHONE INPUT ========== */
.phone-input-wrapper {
    display: flex;
    align-items: center;
}

.phone-prefix {
    padding: 0.875rem 1rem;
    font-size: 16px;
    font-weight: 600;
    color: #474C51;
    background: #F3F4F6;
    border: 1.5px solid #D1D5DB;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.phone-input-wrapper .form-control {
    border-radius: 0 8px 8px 0;
}

/* ========== PIN INPUT ========== */
.pin-input-container {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.pin-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #080B0E;
    background: #FFFFFF;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pin-input:focus {
    outline: none;
    border-color: #1E293B;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

.pin-input.is-invalid {
    border-color: #DC2626;
    background: #FEF2F2;
}

/* ========== OTP INPUT ========== */
.otp-input-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1rem;
}

.otp-input {
    width: 52px;
    height: 64px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #080B0E;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #1E293B;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

.otp-input.is-invalid {
    border-color: #DC2626;
    background: #FEF2F2;
}

/* ========== INVALID FEEDBACK ========== */
.invalid-feedback {
    display: none;
    margin-top: 0.5rem;
    font-size: 13px;
    font-weight: 500;
    color: #DC2626;
    letter-spacing: -0.04em;
    text-align: center;
}

.form-control.is-invalid ~ .invalid-feedback,
.pin-input.is-invalid ~ .invalid-feedback,
.otp-input.is-invalid ~ .invalid-feedback {
    display: block;
}

/* ========== FORM CHECK ========== */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 1.5px solid #D1D5DB;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.form-check-input:checked {
    background-color: #1E293B;
    border-color: #1E293B;
}

.form-check-label {
    font-size: 13px;
    font-weight: 400;
    color: #474C51;
    line-height: 1.5;
}

.form-check-label a {
    color: #1E293B;
    font-weight: 600;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* ========== BUTTONS ========== */
.btn-register {
    width: 100%;
    padding: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #FFFFFF;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.btn-register:hover:not(:disabled) {
    background: linear-gradient(135deg, #0F172A 0%, #020617 100%);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.4);
}

.btn-register:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-register.loading .btn-text {
    opacity: 0;
}

.btn-register.loading .btn-spinner {
    display: block;
}

.btn-spinner {
    display: none;
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-back {
    width: 100%;
    padding: 0.875rem;
    margin-top: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #474C51;
    background: transparent;
    border: 1.5px solid #E8E8E8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-back:hover {
    background: #F8FAFC;
    border-color: #D1D5DB;
}

/* ========== VERIFICATION ICON ========== */
.verification-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-radius: 50%;
}

.verification-icon i {
    font-size: 36px;
    color: #4F46E5;
}

/* ========== TIMER ========== */
.timer-container {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 14px;
    color: #6B7280;
}

.timer-container strong {
    color: #1E293B;
    font-weight: 700;
}

/* ========== RESEND ========== */
.resend-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.resend-text {
    font-size: 14px;
    color: #6B7280;
}

.btn-resend {
    background: none;
    border: none;
    color: #4F46E5;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
}

.btn-resend:hover:not(:disabled) {
    color: #4338CA;
    text-decoration: underline;
}

.btn-resend:disabled {
    color: #9CA3AF;
    cursor: not-allowed;
}

/* ========== ALERT ========== */
.alert {
    padding: 1rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ========== LINKS ========== */
.register-links {
    margin-top: 1.5rem;
    text-align: center;
}

.link-text {
    font-size: 14px;
    color: #6B7280;
}

.register-link {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    text-decoration: none;
    margin-left: 0.25rem;
}

.register-link:hover {
    text-decoration: underline;
}

/* ========== FOOTER ========== */
.register-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #E8E8E8;
}

.footer-text {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6B7280;
    letter-spacing: -0.04em;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .register-header {
        padding: 1rem;
    }

    .logo-container {
        max-width: 160px;
    }

    .register-main {
        padding: 1.5rem 1rem;
    }

    .register-box {
        padding: 1.5rem;
    }

    .register-title {
        font-size: 20px;
    }

    .register-subtitle {
        font-size: 13px;
    }

    .pin-input {
        width: 42px;
        height: 50px;
        font-size: 20px;
    }

    .otp-input {
        width: 44px;
        height: 56px;
        font-size: 24px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .step-line {
        width: 40px;
    }
}
