/* Renewed Technology sign-in page */
.rt-auth-page {
    margin: 0;
    min-height: 100vh;
    background: #f4f6f8;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.rt-auth-top {
    background: #0f766e;
    padding: 14px 20px;
}

.rt-auth-top a {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.rt-auth-wrap {
    max-width: 420px;
    margin: 28px auto 48px;
    padding: 0 16px;
}

.rt-auth-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px 28px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.rt-auth-card h1 {
    margin: 0 0 18px;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}

.rt-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.rt-auth-tabs button {
    flex: 1;
    padding: 10px 8px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
}

.rt-auth-tabs button:hover {
    color: #0f766e;
}

.rt-auth-tabs button.active {
    color: #0f766e;
    border-bottom-color: #0f766e;
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

.rt-label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 700;
}

.rt-hint {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 10px;
    line-height: 1.4;
}

.phone-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
}

.phone-input-row input {
    flex: 1;
}

.rt-input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.rt-input:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.otp-sent-to {
    font-size: 13px;
    color: #0f766e;
    margin-bottom: 12px;
}

.otp-input {
    letter-spacing: 8px;
    font-size: 20px;
    text-align: center;
    font-weight: 600;
}

.rt-btn-primary {
    width: 100%;
    padding: 10px 12px;
    background: #0f766e;
    border: 1px solid #0f5e58;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.rt-btn-primary:hover {
    background: #0c5f59;
}

.rt-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.rt-btn-secondary {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #1f2937;
    font-size: 14px;
    cursor: pointer;
}

.rt-btn-secondary:hover {
    background: #f1f5f9;
}

.rt-divider {
    display: flex;
    align-items: center;
    margin: 18px 0;
    color: #94a3b8;
    font-size: 12px;
}

.rt-divider::before,
.rt-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.rt-divider span {
    padding: 0 10px;
}

.rt-link-btn {
    background: none;
    border: none;
    color: #0f766e;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    margin-top: 12px;
    text-decoration: none;
    display: inline-block;
    font-weight: 400;
}

.rt-link-btn:hover {
    color: #0c5f59;
    text-decoration: underline;
}

.google-auth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    color: #1f2937;
}

.google-auth-btn:hover {
    background: #f1f5f9;
}

.rt-auth-footer {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 12px;
    color: #1f2937;
}

.rt-auth-footer a {
    color: #0f766e;
    text-decoration: none;
}

.rt-auth-footer a:hover {
    color: #0c5f59;
    text-decoration: underline;
}

.rt-legal {
    max-width: 420px;
    margin: 0 auto 32px;
    padding: 0 16px;
    text-align: center;
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
}

#recaptcha-container {
    min-height: 1px;
}

.auth-error {
    color: #b91c1c;
    font-size: 12px;
    margin: 8px 0 0;
    display: none;
}

.auth-error.visible {
    display: block;
}

.resend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
}

.resend-row button:disabled {
    color: #888;
    cursor: not-allowed;
}

/* MOBILE RESPONSIVE */

@media(max-width:768px){
    .rt-auth-wrap{
        margin: 16px auto 32px;
        padding: 0 12px;
    }

    .rt-auth-card{
        padding: 20px 22px;
    }

    .rt-auth-card h1{
        font-size: 24px;
    }

    .rt-auth-top{
        padding: 12px 16px;
    }

    .rt-auth-top a{
        font-size: 18px;
    }
}

@media(max-width:480px){
    .rt-auth-wrap{
        margin: 12px auto 24px;
        padding: 0 8px;
    }

    .rt-auth-card{
        padding: 16px 16px;
    }

    .rt-auth-card h1{
        font-size: 22px;
    }

    .rt-auth-tabs button{
        font-size: 13px;
        padding: 8px 6px;
    }
}
