/**
 * Register Page - Custom styles
 * Scope: .register-page-section
 * Mobile-first, app-promotion-section inspired layout
 */

/* ===== Section Layout ===== */
.register-page-section {
    background: #f8fafb;
    min-height: 600px;
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.register-page-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

/* ===== Left: Mobil Promo Area ===== */
.register-promo-area {
    flex: 1;
    color: #1a3d2e;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.register-promo-area h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #1a3d2e;
    letter-spacing: -0.5px;
}

.register-promo-area h2 .highlight {
    display: block;
    font-weight: 800;
    color: #008141;
}

.register-promo-area p {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 35px;
    color: #4b5563;
    letter-spacing: 0.2px;
}

.register-page-section .register-store-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.register-page-section .register-store-buttons a {
    display: inline-block;
    transition: all 0.3s ease;
    filter: brightness(1);
}

.register-page-section .register-store-buttons a:hover {
    transform: translateY(-8px) scale(1.05);
    filter: brightness(1.1) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

.register-page-section .register-store-buttons img {
    height: 65px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.register-promo-image {
    flex: 1;
    text-align: center;
}

.register-promo-image img {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* ===== Right: Form Area ===== */
.register-form-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 45px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.register-form-card .register-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    text-align: center;
}

.register-form-card .register-form-subtitle {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 28px;
    text-align: center;
}

/* ===== Form Inputs ===== */
.register-form-card .form-input {
    position: relative;
    margin-bottom: 22px;
}

.register-form-card .form-input span {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.register-form-card .form-input input[type="text"],
.register-form-card .form-input input[type="email"],
.register-form-card .form-input input[type="password"] {
    width: 100%;
    font-size: 15px;
    line-height: 1.4;
    height: 50px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.register-form-card .form-input input::placeholder {
    color: #9ca3af;
}

.register-form-card .form-input input:focus {
    outline: none;
    border-color: #008141;
    box-shadow: 0 0 0 3px rgba(0, 129, 65, 0.15);
}

.register-form-card .form-input input.is-invalid,
.register-form-card .form-input input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.register-form-card .form-input .invalid-feedback,
.register-form-card .form-input .text-danger,
.register-form-card .form-input span[style*="color: #ff0f0f"],
.register-form-card .text-danger {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #dc3545 !important;
}

/* ===== Password Component ===== */
.register-form-card .password-component {
    position: relative;
}

.register-form-card .password-component .form-input {
    margin-bottom: 18px;
}

.register-form-card .password-component .password-toggle-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    z-index: 10;
    color: #6b7280;
    transition: color 0.2s;
}

.register-form-card .password-component .password-toggle-icon:hover {
    color: #374151;
}

.register-form-card .password-requirements {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    font-size: 12px;
}

.register-form-card .password-requirements li {
    margin-bottom: 4px;
    padding-left: 20px;
    position: relative;
}

.register-form-card .password-requirements li.valid {
    color: #059669;
}

.register-form-card .password-requirements li.invalid {
    color: #dc3545;
}

.register-form-card .password-match {
    font-size: 12px;
    margin-top: 6px;
}

.register-form-card .password-match.valid {
    color: #059669;
}

.register-form-card .password-match.invalid {
    color: #dc3545;
}

/* ===== reCAPTCHA ===== */
.register-form-card .form-input .g-recaptcha {
    margin-top: 4px;
}

.register-form-card .form-input iframe {
    max-width: 100%;
}

/* ===== Buttons ===== */
.register-form-card #submit-btn {
    width: 100%;
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #008141 0%, #00a854 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.register-form-card #submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #006b35 0%, #008141 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 129, 65, 0.35);
}

.register-form-card #submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== VEYA Separator ===== */
.register-form-card .register-divider {
    display: flex;
    align-items: center;
    margin: 28px 0 24px;
    gap: 16px;
}

.register-form-card .register-divider::before,
.register-form-card .register-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.register-form-card .register-divider span {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

/* ===== Google Auth Button ===== */
.register-form-card .btn-googleAuth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.register-form-card .btn-googleAuth:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.register-form-card .btn-googleAuth img {
    width: 22px;
    height: 22px;
}

/* ===== Giriş Yap Link ===== */
.register-form-card .register-login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    margin-top: 16px;
    border: 1px solid #008141;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #008141;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
}

.register-form-card .register-login-link:hover {
    background: rgba(0, 129, 65, 0.08);
    color: #006b35;
}

/* ===== Tabs (simplified) ===== */
.register-form-card .tabs__controls {
    display: none;
}

.register-form-card .tabs__content {
    padding: 0;
    background: transparent;
    margin-top: 0;
    border-radius: 0;
}

/* ===== Google Role Modal (register page only) ===== */
.google-role-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.google-role-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
}

.google-role-content {
    position: relative;
    max-width: 520px;
    width: 100%;
    margin: 20px auto;
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px 22px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
}

.google-role-content h3 {
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.google-role-content p {
    margin-bottom: 14px;
    font-size: 14px;
    color: #4b5563;
}

.account-type-group {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.account-type-card {
    flex: 1 1 0;
    min-width: 140px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    background-color: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.account-type-card:hover {
    border-color: #008141;
    box-shadow: 0 4px 12px rgba(0, 129, 65, 0.12);
}

.account-type-card.active {
    border-color: #008141;
    background-color: #e8f5e9;
    box-shadow: 0 0 0 1px rgba(0, 129, 65, 0.4);
}

.account-type-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    font-size: 15px;
}

.account-type-desc {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
}

.google-role-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

/* ===== Responsive: 991px ===== */
@media screen and (max-width: 991px) {
    .register-page-section {
        padding: 60px 0;
        min-height: auto;
    }

    .register-page-content {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .register-promo-area {
        text-align: center;
    }

    .register-promo-area h2 {
        font-size: 36px;
        font-weight: 800;
    }

    .register-promo-area p {
        font-size: 17px;
    }

    .register-page-section .register-store-buttons {
        justify-content: center;
    }

    .register-promo-image img {
        max-height: 350px;
    }

    .register-form-area {
        width: 100%;
    }

    .register-form-card {
        max-width: 100%;
        padding: 32px 28px;
    }
}

/* ===== Responsive: 767px ===== */
@media screen and (max-width: 767px) {
    .register-page-section {
        padding: 50px 0;
    }

    .register-promo-area h2 {
        font-size: 30px;
        margin-bottom: 18px;
        letter-spacing: -0.3px;
    }

    .register-promo-area p {
        font-size: 16px;
        margin-bottom: 28px;
        line-height: 1.6;
    }

    .register-page-section .register-store-buttons {
        gap: 12px;
        justify-content: center;
    }

    .register-page-section .register-store-buttons img {
        height: 56px;
    }

    .register-promo-image img {
        max-height: 300px;
    }

    .register-page-content {
        gap: 35px;
    }

    .register-form-card {
        padding: 28px 22px;
    }

    .register-form-card .register-form-title {
        font-size: 22px;
    }

    .register-form-card .form-input input[type="text"],
    .register-form-card .form-input input[type="email"],
    .register-form-card .form-input input[type="password"] {
        height: 48px;
        font-size: 16px;
    }

    .register-form-card #submit-btn {
        height: 48px;
        font-size: 15px;
    }
}

/* ===== Responsive: 480px ===== */
@media screen and (max-width: 480px) {
    .register-page-section {
        padding: 40px 0;
    }

    .register-promo-area h2 {
        font-size: 26px;
        font-weight: 800;
    }

    .register-promo-area p {
        font-size: 15px;
    }

    .register-page-section .register-store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .register-page-section .register-store-buttons a {
        width: 100%;
        max-width: 220px;
    }

    .register-page-section .register-store-buttons img {
        width: 100%;
        height: auto;
    }

    .register-promo-image img {
        max-height: 260px;
    }

    .register-form-card {
        padding: 24px 18px;
    }

    .register-form-card .register-form-title {
        font-size: 20px;
    }

    .register-form-card .register-form-subtitle {
        font-size: 14px;
    }

    .account-type-group {
        flex-direction: column;
    }

    .account-type-card {
        min-width: 100%;
    }
}
