/* ==========================================
   TableTap - Register Page Stylesheet
   ========================================== */

*, *:before, *:after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* ==========================================
   1. Header / Navbar
   ========================================== */
.register-header {
    background-color: #ffffff;
    padding: 15px 30px;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #111111;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: inline-block;
}

.logo span {
    color: #27ae60;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.back-home:hover {
    background-color: #f3f4f6;
    color: #27ae60;
}

/* ==========================================
   2. Main Container & Form Card
   ========================================== */
.register-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 60px;
}

.register-card {
    background: #ffffff;
    width: 100%;
    max-width: 580px;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h1 {
    font-size: 1.85rem;
    color: #111111;
    margin: 0 0 10px;
    font-weight: 700;
}

.card-header p {
    color: #666666;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================
   3. Form Inputs & Layout
   ========================================== */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}

.form-group label span.required {
    color: #e53e3e;
    margin-left: 2px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    font-size: 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    color: #111111;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    font-family: inherit;
}

.form-group input::placeholder {
    color: #9ca3af;
    font-size: 0.9rem;
}

.form-group input:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
}

.form-group input.input-error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.error-hint {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

/* ==========================================
   4. Status Messages (Alerts)
   ========================================== */
.status-message {
    display: none;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 20px;
    text-align: center;
}

.status-message.success {
    display: block;
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-message.error {
    display: block;
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ==========================================
   5. Submit Button
   ========================================== */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #27ae60;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
    margin-top: 10px;
    gap: 8px;
}

.btn-submit:hover {
    background-color: #219653;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.35);
}

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

.btn-submit:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================
   6. Footer & Login Link
   ========================================== */
.card-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    font-size: 0.92rem;
    color: #666666;
}

.card-footer a {
    color: #27ae60;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.card-footer a:hover {
    text-decoration: underline;
}

/* ==========================================
   5b. Plan Selection Cards (Monthly & Yearly)
   ========================================== */
.plan-selection-group {
    margin-top: 15px;
    margin-bottom: 12px;
}

.section-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.plan-card {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 14px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.plan-card:hover {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.plan-card.active {
    border-color: #27ae60;
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.15);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.plan-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.plan-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.plan-card.active .plan-radio {
    border-color: #27ae60;
    background: #27ae60;
}

.plan-card.active .plan-radio::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

.plan-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f2937;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.price-num {
    font-size: 1.45rem;
    font-weight: 700;
    color: #111827;
}

.price-unit {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.plan-desc {
    font-size: 0.74rem;
    color: #6b7280;
    line-height: 1.35;
}

@media (max-width: 480px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   6b. Terms Checkbox & Legal Links
   ========================================== */
.terms-group {
    margin-top: 8px;
    margin-bottom: 6px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
    color: #4b5563;
    cursor: pointer;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #27ae60;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #27ae60;
    font-weight: 500;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #219653;
}

.legal-links-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    font-size: 0.8rem;
    color: #9ca3af;
}

.legal-links-footer a {
    color: #6b7280;
    text-decoration: none;
}

.legal-links-footer a:hover {
    color: #27ae60;
    text-decoration: underline;
}

/* ==========================================
   7. Responsive Queries
   ========================================== */
@media (max-width: 600px) {
    .register-header {
        padding: 12px 15px;
    }

    .register-card {
        padding: 25px 20px;
        border-radius: 10px;
    }

    .card-header h1 {
        font-size: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .btn-submit {
        padding: 13px 18px;
        font-size: 0.95rem;
    }
}
