/* Standalone stylesheet for the OTP login page - deliberately not shared
   with app.css so this module has no coupling to the Drive-sync page. */

* { box-sizing: border-box; }

.otp-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    padding: 1rem;
}

.otp-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    padding: 2rem;
    width: 100%;
    max-width: 24rem;
}

.otp-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 .35rem;
}

.otp-subtitle {
    font-size: .875rem;
    color: #6b7280;
    margin: 0 0 1.25rem;
}

.otp-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .35rem;
}

.otp-input {
    width: 100%;
    padding: .6rem .75rem;
    font-size: .95rem;
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    margin-bottom: .9rem;
    font-family: inherit;
}
.otp-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

.otp-code-input {
    letter-spacing: .4em;
    font-size: 1.25rem;
    text-align: center;
    font-weight: 600;
}

.otp-btn {
    width: 100%;
    padding: .65rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
    background: #4f46e5;
    border: none;
    border-radius: .5rem;
    cursor: pointer;
    margin-bottom: .6rem;
    transition: background .15s ease;
}
.otp-btn:hover { background: #4338ca; }
.otp-btn:disabled { background: #c7d2fe; cursor: not-allowed; }

.otp-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}
.otp-btn-secondary:hover { background: #e5e7eb; }

.otp-sent-to {
    font-size: .85rem;
    color: #4b5563;
    margin: 0 0 1rem;
}

.otp-alert {
    font-size: .85rem;
    padding: .6rem .75rem;
    border-radius: .5rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.otp-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
.otp-alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

@media (max-width: 400px) {
    .otp-card { padding: 1.5rem 1.25rem; }
    .otp-title { font-size: 1.2rem; }
}

/* iOS Safari auto-zooms the page on focusing any input with a computed
   font-size under 16px - override the otherwise-smaller .otp-input size on
   touch-sized viewports so tapping into the email/OTP fields doesn't
   trigger that zoom. */
@media (max-width: 640px) {
    .otp-input { font-size: 16px; }
    .otp-code-input { font-size: 1.25rem; }
}
