/* ============================================================
   Team Tool Access — Auth Forms (Register / Login)
   ============================================================ */

.tta-auth-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px;
    min-height: 60vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tta-auth-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px 44px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
}

@media (max-width: 520px) {
    .tta-auth-box { padding: 28px 20px; }
}

.tta-auth-icon {
    font-size: 42px;
    text-align: center;
    margin-bottom: 10px;
}

.tta-auth-box h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    color: #111827;
}

.tta-auth-sub {
    color: #6b7280;
    font-size: 15px;
    text-align: center;
    margin: 0 0 28px;
}

/* ---- Errors & Successes ---- */
.tta-form-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
}
.tta-error-item {
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.6;
    padding: 2px 0;
}
.tta-form-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 14px;
    color: #15803d;
    font-size: 13px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ---- Form layout ---- */
.tta-auth-form { display: flex; flex-direction: column; gap: 18px; }

.tta-form-row.tta-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 420px) {
    .tta-form-row.tta-two-col { grid-template-columns: 1fr; }
}

.tta-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tta-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tta-req { color: #ef4444; }

.tta-forgot-link {
    font-size: 12px;
    font-weight: 400;
    color: #2563eb;
    text-decoration: none;
}
.tta-forgot-link:hover { text-decoration: underline; }

.tta-form-group input[type="text"],
.tta-form-group input[type="email"],
.tta-form-group input[type="password"] {
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
}
.tta-form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.tta-form-group input.tta-input-error {
    border-color: #ef4444;
}

/* ---- Password field with toggle ---- */
.tta-pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.tta-pw-wrap input {
    padding-right: 42px !important;
    flex: 1;
}
.tta-pw-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    color: #9ca3af;
    transition: color .15s;
}
.tta-pw-toggle:hover { color: #374151; }

/* ---- Password strength ---- */
.tta-pw-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -8px;
}
.tta-pw-bar {
    flex: 1;
    height: 5px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}
.tta-pw-fill {
    height: 100%;
    border-radius: 99px;
    width: 0%;
    transition: width .3s, background .3s;
}
#tta-pw-label {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 60px;
}

/* ---- Remember me ---- */
.tta-remember-row { margin-top: -4px; }
.tta-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    font-weight: 400 !important;
}
.tta-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

/* ---- Submit button ---- */
.tta-submit-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 13px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .15s, transform .1s;
    margin-top: 4px;
    letter-spacing: .2px;
}
.tta-submit-btn:hover    { opacity: .88; }
.tta-submit-btn:active   { transform: scale(.98); }
.tta-submit-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Switch link (sign in / sign up) ---- */
.tta-auth-switch {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin: 18px 0 0;
}
.tta-auth-switch a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}
.tta-auth-switch a:hover { text-decoration: underline; }

/* ---- Pending / success state ---- */
#tta-register-wrap .tta-auth-box[data-state="success"] {
    text-align: center;
    padding: 60px 44px;
}
