/* ============================================
   TodayAI.shop — User Login & Registration Pages
   This file is used by user/login.php and user/register.php
   ============================================ */

.ta-login-body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', 'Noto Sans Bengali', Arial, sans-serif;
    background-color: #ffffff;
    background-image: url('../img/bg-pattern.png');
    background-repeat: repeat;
    background-size: 230px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.ta-login-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 18px;
    padding: 38px 32px 30px;
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.12), 0 2px 8px rgba(17, 24, 39, 0.06);
    text-align: center;
}

.ta-login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 6px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, #0b3d91 0%, #2563eb 55%, #f97316 100%);
}

.ta-logo-wrap {
    width: 132px;
    height: 132px;
    margin: 6px auto 18px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.18);
}

.ta-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ta-login-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    color: #1d4ed8;
}

.ta-login-subtitle {
    margin: 0 0 26px;
    font-size: 14px;
    color: #6b7280;
}

.ta-field {
    position: relative;
    text-align: left;
    margin-bottom: 16px;
}

.ta-field .ta-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #2563eb;
    pointer-events: none;
}

.ta-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px 13px 44px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    font-size: 14px;
    color: #111827;
    outline: none;
    transition: border-color .15s, background .15s;
}

.ta-field input::placeholder {
    color: #9ca3af;
}

.ta-field input:focus {
    border-color: #2563eb;
    background: #ffffff;
}

.ta-forgot-row {
    text-align: right;
    margin: -6px 0 20px;
}

.ta-forgot-row a {
    font-size: 13px;
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
}

.ta-forgot-row a:hover {
    text-decoration: underline;
}

.ta-btn-login {
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #ffffff;
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
    transition: transform .12s, box-shadow .12s;
}

.ta-btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.34);
}

.ta-divider-text {
    margin: 22px 0 12px;
    font-size: 13px;
    color: #6b7280;
}

.ta-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 10px;
    background: #25D366;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.28);
}

.ta-btn-whatsapp svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.ta-login-footer {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid #f0f1f3;
    font-size: 12px;
    color: #9ca3af;
}

.ta-login-footer b {
    color: #6b7280;
}

.ta-error-msg {
    text-align: left;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
}

.ta-success-msg {
    text-align: left;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
}

.ta-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 11px;
    margin-bottom: 14px;
    border-radius: 999px;
    border: 2px solid #f97316;
    background: transparent;
    color: #f97316;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.ta-btn-outline svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.ta-btn-outline:hover {
    background: #f97316;
    color: #ffffff;
}

/* AI service selector — used on the registration page */
.ta-service-group {
    text-align: left;
    margin-bottom: 18px;
}

.ta-service-group > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.ta-service-options {
    display: flex;
    gap: 10px;
}

.ta-service-option {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 6px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.ta-price-tag {
    position: absolute;
    top: -9px;
    right: -6px;
    background: linear-gradient(90deg, #f97316, #ea580c);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 999px;
    box-shadow: 0 3px 6px rgba(234, 88, 12, 0.35);
    white-space: nowrap;
    z-index: 2;
}

.ta-service-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ta-service-option:hover {
    border-color: #93c5fd;
}

.ta-service-option:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

.ta-service-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.ta-service-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ta-service-name {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.ta-login-links {
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
}

.ta-login-links a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.ta-login-links a:hover {
    text-decoration: underline;
}

@media (max-width: 420px) {
    .ta-login-card {
        padding: 30px 22px 24px;
    }
    .ta-logo-wrap {
        width: 108px;
        height: 108px;
    }
}
