/* register.css (scoped) */

/* Page wrap */
.authWrap{
    min-height: calc(100vh - 120px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:42px 16px;
    background:#f6f7fb;
}

/* Card */
.authWrap .authCard{
    width: min(560px, 100%);
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:22px;
    box-shadow: 0 18px 50px rgba(17,24,39,.08);
    padding:28px;
}

/* Header */
.authWrap .authHead{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:10px;
    margin-bottom:16px;
}

.authWrap .authLogo{
    width:120px;
    border-radius:18px;
    background:#fff;
    padding:10px;
    object-fit: contain;
}

.authWrap .authTitle{
    font-size:26px;
    margin:0;
    color:#111827;
    letter-spacing:-.3px;
}

.authWrap .authSub{
    margin:0;
    color:black;
}

/* Grid */
.authWrap .grid2{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:14px;
}
@media (max-width:560px){
    .authWrap .grid2{ grid-template-columns: 1fr; }
}

/* Form controls */
.authWrap .formGroup{ margin-bottom:14px; }

.authWrap .formGroup label{
    display:block;
    font-weight:800;
    color:#111827;
    margin-bottom:8px;
}

/* ✅ IMPORTANT: input styles are scoped now */
.authWrap .formGroup input{
    width:100%;
    padding:14px 14px;
    border-radius:14px;
    border:1px solid #e5e7eb;
    background:#fff;
    outline:none;
    font-size:14px;
}

.authWrap .formGroup input:focus{
    border-color:#fb7185;
    box-shadow: 0 0 0 4px rgba(251,113,133,.18);
}

/* Errors */
.authWrap .errorText{
    display:block;
    font-size:12px;
    color:#ef4444;
    margin-top:6px;
    visibility:hidden;
}

/* ✅ IMPORTANT: only input.error, scoped */
.authWrap .formGroup input.error{
    border-color:#ef4444;
    background:#fff5f5;
}

/* Button */
.authWrap .btnMain{
    width:100%;
    margin-top:6px;
    border:0;
    border-radius:16px;
    padding:14px 16px;
    font-weight:900;
    color:#fff;
    background: linear-gradient(90deg,#fb7185,#f97316);
    cursor:pointer;
}

.authWrap .btnMain:disabled{
    opacity:.6;
    cursor:not-allowed;
}

/* Server-side summary error box */
.authWrap .formErr{
    background:#fff7ed;
    border:1px solid #fed7aa;
    color:#9a3412;
    border-radius:14px;
    padding:10px 12px;
    margin:10px 0;
    font-weight:700;
}

/* Footer */
.authWrap .authFoot{
    margin-top:14px;
    text-align:center;
    color:black;
    font-weight:700;
}

.authWrap .authFoot a{
    color:#fb7185;
    text-decoration:none;
    font-weight:900;
}