/* A roomy sign-in surface; authentication behavior stays in app.js. */
#auth-modal-overlay { padding: 24px 16px; overflow-y: auto; box-sizing: border-box; }
#auth-modal-overlay .auth-card { width: min(520px,100%); max-width: 520px; max-height: calc(100dvh - 48px); overflow-y: auto; box-sizing: border-box; padding: 40px; margin: auto; border-radius: 30px; box-shadow: 0 24px 70px rgb(15 35 38 / 18%); }
#auth-modal-overlay .auth-header { margin-bottom: 28px; }
#auth-modal-overlay .auth-header h2 { font-size: 30px; line-height: 1.3; margin: 0 0 10px; letter-spacing: -.5px; }
#auth-modal-overlay .auth-header p { font-size: 15px; line-height: 1.5; margin: 0; color: var(--text-muted); }
#auth-modal-overlay .auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--text-muted); margin-bottom: 22px; }
#auth-modal-overlay .auth-brand img { width: 40px; height: 40px; object-fit: contain; }
#auth-modal-overlay .auth-modal-close-btn { top: 14px; right: 14px; width: 44px; height: 44px; min-width: 44px; color: var(--text-muted); background: transparent; border: 0; z-index: 5; }
.auth-close-symbol { font: 28px/1 var(--craft-ui); }
#auth-modal-overlay .auth-buttons-wrapper { gap: 18px; }
#auth-modal-overlay .auth-divider { margin: 6px 0; font-size: 14px; }
#auth-modal-overlay .auth-email-input-wrap { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 10px; padding: 14px; border-radius: 16px; background: var(--bg-color); }
#auth-modal-overlay .auth-email-input-wrap input { width: 100%; min-width: 0; padding: 0; font-size: 16px; height: 30px; }
#auth-modal-overlay .auth-email-submit-btn { position: static; grid-column: 1 / -1; min-height: 50px; width: 100%; border-radius: 12px; justify-content: center; margin-top: 6px; background: var(--primary-color); color: var(--card-bg); }
#auth-modal-overlay .auth-security-note { margin-top: 20px; font-size: 13px; line-height: 1.5; }
#auth-status-message { font-size: 14px; line-height: 1.5; }
#auth-modal-overlay .auth-google-wrapper, #auth-modal-overlay #gsi-button-container { max-width: 100%; }
@media(max-width:520px) { #auth-modal-overlay .auth-card { padding: 32px 24px; } #auth-modal-overlay .auth-header h2 { font-size: 26px; } }
@media(max-height:600px) { #auth-modal-overlay { align-items: flex-start; } #auth-modal-overlay .auth-card { margin: 0 auto; } }

/* Welcome artwork and sign-in live side by side on roomy screens. */
#auth-modal-overlay .auth-card { display: grid; grid-template-columns: 1.1fr 1fr; width: min(980px,100%); max-width: 980px; padding: 0; overflow: auto; }
.auth-welcome-art { display: flex; align-items: center; justify-content: center; background: #e3f2ed; overflow: hidden; border-radius: 30px 0 0 30px; }
.auth-welcome-art img { display: block; width: 100%; height: auto; object-fit: contain; }
.auth-form-pane { padding: 44px 36px 36px; min-width: 0; }
#auth-modal-overlay .auth-modal-close-btn { top: 10px; right: 10px; }
#auth-modal-overlay .auth-header h2 { font-size: 28px; }
@media(max-width:700px) {
 #auth-modal-overlay .auth-card { display: block; width: min(480px,100%); padding: 0; }
 .auth-welcome-art { border-radius: 30px 30px 0 0; }
 .auth-welcome-art img { max-height: 185px; object-fit: contain; }
 .auth-form-pane { padding: 26px 24px; }
 #auth-modal-overlay .auth-brand { margin-bottom: 14px; }
 #auth-modal-overlay .auth-header { margin-bottom: 20px; }
 #auth-modal-overlay .auth-header h2 { font-size: 25px; }
 #auth-modal-overlay .auth-modal-close-btn { background: rgba(255,255,255,.9); }
}

#auth-modal-overlay, #auth-modal-overlay :is(h2,p,button,input,span,.auth-brand) { font-family: var(--craft-ui) !important; }

.auth-welcome-art img { width: 100%; height: 100%; object-fit: cover; }
@media(max-width:700px) { .auth-welcome-art img { height: auto; max-height: 230px; object-fit: contain; } }

/* Anchor the caption side inside the laptop illustration crop. */
.auth-welcome-art img { object-position: right center; }

@media(max-width:700px) { .auth-welcome-art img { object-position: center center; } }

@media(max-width:700px) {
 #auth-modal-overlay .auth-welcome-art { width: 100%; aspect-ratio: 1 / 1; }
 #auth-modal-overlay .auth-welcome-art img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; }
 #auth-modal-overlay .auth-form-pane { padding: 22px 22px 24px; }
 #auth-modal-overlay .auth-header h2 { font-size: 21px; line-height: 1.3; }
 #auth-modal-overlay .auth-header p { font-size: 13px; }
 #auth-modal-overlay .auth-brand { font-size: 13px; margin-bottom: 12px; }
 #auth-modal-overlay .auth-brand img { width: 30px; height: 30px; }
 #auth-modal-overlay .auth-divider, #auth-modal-overlay .auth-security-note { font-size: 12px; }
 #auth-modal-overlay .auth-email-submit-btn { font-size: 14px; min-height: 44px; }
}
