/**
 * TMU Authentication Screen Styles (Exact Match to Uploaded Screenshot)
 */

.tmu-auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f3ed;
    padding: 40px 24px;
}

.tmu-auth-container {
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 60px;
    align-items: center;
}

/* Left Column: Form */
.tmu-auth-form-col {
    width: 100%;
    max-width: 430px;
    display: flex;
    flex-direction: column;
}

/* Brand Crest Logo */
.tmu-auth-crest {
    margin-bottom: 24px;
}

.tmu-crest-img {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Notice Banner */
.tmu-auth-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.tmu-auth-notice.error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.tmu-auth-notice.success {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.tmu-auth-notice.warning {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* Google Social Button */
.tmu-btn-social-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e5e3dc;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.tmu-btn-social-google:hover {
    background: #fafaf8;
    border-color: #d1cfc7;
}

/* Divider */
.tmu-auth-divider {
    position: relative;
    text-align: center;
    margin: 22px 0 20px;
}

.tmu-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e0d8;
}

.tmu-auth-divider span {
    position: relative;
    background: #f5f3ed;
    padding: 0 14px;
    font-size: 12px;
    color: #787670;
    font-weight: 500;
}

/* Headers */
.tmu-auth-header-text h2 {
    font-family: var(--tmu-font-heading);
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
    letter-spacing: -0.6px;
}

.tmu-auth-header-text p {
    font-size: 13.5px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* Form Fields */
.tmu-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tmu-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tmu-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.tmu-input-with-left-icon {
    position: relative;
    width: 100%;
}

.tmu-field-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #9ca3af;
}

.tmu-input-with-left-icon input[type="text"],
.tmu-input-with-left-icon input[type="email"],
.tmu-input-with-left-icon input[type="password"] {
    width: 100%;
    padding: 12px 42px 12px 44px;
    border: 1px solid #e5e3dc;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.15s ease;
}

.tmu-input-with-left-icon input::placeholder {
    color: #9ca3af;
    font-size: 13.5px;
}

.tmu-input-with-left-icon input:focus {
    outline: none;
    border-color: #df9724;
    box-shadow: 0 0 0 3px rgba(223, 151, 36, 0.15);
}

.tmu-toggle-pwd {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #9ca3af;
    padding: 4px;
}

.tmu-toggle-pwd:hover {
    color: #4b5563;
}

/* Form Actions Row */
.tmu-form-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 4px;
}

.tmu-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1f2937;
    font-weight: 500;
    cursor: pointer;
}

.tmu-checkbox-label input[type="checkbox"] {
    accent-color: #111827;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.tmu-link-underline {
    color: #111827;
    font-weight: 500;
    font-size: 13px;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.tmu-link-underline:hover {
    color: #df9724;
}

/* Submit Button (Amber Golden with Arrow Icon) */
.tmu-btn-submit {
    background-color: #df9724;
    color: #111827;
    border: none;
    border-radius: 10px;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    box-shadow: 0 2px 6px rgba(223, 151, 36, 0.2);
    transition: all 0.2s ease;
}

.tmu-btn-submit:hover {
    background-color: #cf8817;
    transform: translateY(-1px);
}

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

.tmu-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.tmu-auth-footer-prompt {
    font-size: 13px;
    color: #6b7280;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Subtitles for Verify Email */
.tmu-verify-instruction {
    font-size: 13.5px;
    color: #6b7280;
    margin-bottom: 3px !important;
}

.tmu-verify-target-email {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 22px;
}

/* 6-Digit Circular OTP Inputs (Exact Match to 2nd Screenshot) */
.tmu-auth-form-verify {
    max-width: 334px;
    width: 100%;
}

.tmu-otp-inputs-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 4px 0 20px;
    width: 100%;
}

.tmu-otp-digit {
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    border-radius: 50% !important;
    background-color: #dbe6f5 !important;
    border: none !important;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #111827 !important;
    font-family: var(--tmu-font-body);
    padding: 0 !important;
    outline: none;
    box-sizing: border-box;
    box-shadow: none;
    transition: all 0.15s ease;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.tmu-otp-digit::-webkit-outer-spin-button,
.tmu-otp-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tmu-otp-digit:focus {
    outline: none !important;
    background-color: #d0e0f5 !important;
    box-shadow: 0 0 0 2px #df9724 !important;
}

/* Verify Submit Button (Exact Match) */
.tmu-btn-verify-submit {
    width: 100%;
    max-width: 334px;
    height: 48px;
    padding: 0 24px;
    margin-top: 0;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: #df9724;
    color: #111827;
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tmu-btn-verify-submit:hover {
    background-color: #cf8817;
    transform: translateY(-1px);
}

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

/* Timer and Resend Actions Column (Exact match to 1st Image) */
.tmu-otp-actions-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 334px;
    margin-top: 22px;
    gap: 16px;
}

.tmu-otp-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 334px;
    margin-top: 18px;
    gap: 12px;
}

.tmu-timer-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
}

.tmu-timer-clock-icon {
    width: 18px;
    height: 18px;
    color: #3b82f6;
    stroke: #3b82f6;
    flex-shrink: 0;
}

.tmu-timer-count {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    font-family: var(--tmu-font-body);
    letter-spacing: 0.5px;
}

.tmu-verify-resend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.tmu-verify-resend-label {
    color: #6b7280;
    font-size: 13px;
}

.tmu-btn-resend {
    background: none;
    border: none;
    padding: 0;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.tmu-btn-resend:disabled {
    color: #9ca3af;
    cursor: not-allowed;
    text-decoration: underline;
}

.tmu-btn-resend:not(:disabled):hover {
    color: #df9724;
}

/* Forgot Password View (Matches 1st uploaded screenshot) */
.tmu-auth-form-forgot {
    max-width: 350px;
    width: 100%;
}

.tmu-btn-forgot-submit {
    width: 100%;
    max-width: 350px;
    height: 48px;
    padding: 0 24px;
    margin-top: 4px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: #df9724;
    color: #111827;
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tmu-btn-forgot-submit:hover {
    background-color: #cf8817;
    transform: translateY(-1px);
}

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

/* Right Column: Hero Image with Cutouts */
.tmu-auth-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tmu-auth-image-wrapper {
    position: relative;
    max-width: 520px;
    width: 100%;
}

.tmu-auth-hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease;
}

@media (max-width: 900px) {
    .tmu-auth-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .tmu-auth-image-col {
        display: none;
    }
    .tmu-auth-form-col {
        max-width: 100%;
    }
}
