/* ── TUC Auth Styles ── */

.tuc-auth {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
}

/* Logo */
.tuc-auth__logo-wrapper {
    margin-bottom: 32px;
    text-align: center;
}

.tuc-auth__logo-wrapper img {
    max-height: 48px;
    width: auto;
}

.tuc-auth__logo-text {
    font-size: 28px;
    color: #0f172a;
    font-weight: 800;
    margin: 0;
    text-decoration: none;
}

.tuc-auth__logo-wrapper a {
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s;
}

.tuc-auth__logo-wrapper a:hover {
    opacity: 0.8;
}

.tuc-auth__card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

/* Header */
.tuc-auth__header {
    padding: 40px 32px 10px;
    color: #0f172a;
    text-align: center;
    background: transparent;
}

.tuc-auth__header h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.tuc-auth__header p {
    margin: 0;
    font-size: 15px;
    color: #64748b;
}

/* Alert */
.tuc-auth__alert {
    margin: 16px 32px 0;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.tuc-auth__alert--info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.tuc-auth__alert--success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Form */
.tuc-auth__form {
    padding: 24px 32px 32px;
}

.tuc-auth__field {
    margin-bottom: 20px;
}

.tuc-auth__field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.tuc-auth__field input {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #0f172a;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tuc-auth__field input:focus {
    outline: none;
    background: #fff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* intl-tel-input overrides */
.tuc-auth__field--phone .iti {
    width: 100%;
}

.tuc-auth__field--phone .iti__tel-input {
    width: 100% !important;
    padding: 12px 16px 12px 90px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #0f172a;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.tuc-auth__field--phone .iti__tel-input:focus {
    outline: none;
    background: #fff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.tuc-auth__field--phone .iti__country-container {
    border-right: 1px solid #e2e8f0;
}

.tuc-auth[dir="rtl"] .tuc-auth__field--phone .iti__tel-input {
    padding: 12px 90px 12px 16px;
}

.tuc-auth[dir="rtl"] .tuc-auth__field--phone .iti__country-container {
    border-right: none;
    border-left: 1px solid #e2e8f0;
}

/* Row — remember + forgot */
.tuc-auth__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.tuc-auth__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #475569;
    font-weight: 500;
}

.tuc-auth__checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
    cursor: pointer;
    border-radius: 4px;
}

.tuc-auth__link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.tuc-auth__link:hover {
    color: #3730a3;
}

/* Message */
.tuc-auth__msg {
    margin-bottom: 16px;
    min-height: 20px;
    font-size: 14px;
    text-align: center;
}

/* Main Button */
.tuc-auth__btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tuc-auth__btn:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.tuc-auth__btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.tuc-auth__btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Divider */
.tuc-auth__divider {
    display: flex;
    align-items: center;
    margin: 0 32px;
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 500;
}

.tuc-auth__divider::before,
.tuc-auth__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.tuc-auth__divider span {
    padding: 0 16px;
}

/* Google Button */
.tuc-auth__social {
    padding: 24px 32px 8px;
}

.tuc-auth__google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.tuc-auth__google-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tuc-auth__google-btn:active {
    transform: scale(0.98);
}

.tuc-auth__google-btn svg {
    flex-shrink: 0;
}

/* Footer */
.tuc-auth__footer {
    text-align: center;
    padding: 24px 32px 32px;
    font-size: 14.5px;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
}

.tuc-auth__footer a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
    margin-left: 6px;
    transition: color 0.2s;
}

.tuc-auth__footer a:hover {
    color: #3730a3;
}

/* RTL */
.tuc-auth[dir="rtl"] .tuc-auth__footer a {
    margin-left: 0;
    margin-right: 6px;
}

/* Responsive */
@media (max-width: 480px) {
    .tuc-auth {
        padding: 24px 16px;
        background: #fff;
        /* White background on mobile so card blends nicely or use the same */
    }

    .tuc-auth__card {
        border-radius: 16px;
        box-shadow: none;
        border: none;
    }

    .tuc-auth__header {
        padding: 24px 16px 12px;
    }

    .tuc-auth__form {
        padding: 16px 16px 24px;
    }

    .tuc-auth__divider {
        margin: 0 16px;
    }

    .tuc-auth__social {
        padding: 20px 16px 8px;
    }

    .tuc-auth__footer {
        padding: 20px 16px 24px;
    }
}