/* ========================================================================
   OHCON DESIGN SYSTEM - FINALIZED
   ======================================================================== */

body {
    background: radial-gradient(circle at top, #010c26 0%, #031c52 100%);
    color: #e2e8f0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.portal-logo-external {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 30px;
}

.portal-card {
    background: #ffffff;
    border: 2px solid #f97316;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    text-align: center;
}

.portal-view { opacity: 1; transition: opacity 0.3s ease; }
.hidden { display: none !important; }

.view-header h1 { color: #1e293b; font-size: 28px; margin-bottom: 10px; }
.view-header p { color: #64748b; font-size: 16px; margin-bottom: 25px; }

.portal-form { display: flex; flex-direction: column; gap: 15px; text-align: left; }
.form-group label { font-weight: 600; font-size: 14px; color: #334155; }
input, select { 
    width: 100%; padding: 12px; border: 2px solid #cbd5e1; 
    border-radius: 8px; font-size: 15px; box-sizing: border-box; 
}
input:focus { border-color: #f97316; outline: none; }

/* Checkbox Alignment */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #334155;
    font-size: 14px;
}

/* "Invisible" Code of Conduct Box */
.coc-terminal-box {
    width: 100%;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #334155;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    overflow-y: visible;
    text-align: left;
    box-shadow: none !important;
    margin-bottom: 15px;
}

/* Thank You Text Contrast Fix */
.thankyou-body-content p {
    color: #1e293b !important;
    font-size: 16px;
    line-height: 1.6;
}

.prime-button {
    width: 100%; padding: 14px; background: #f97316;
    color: white; border: none; border-radius: 8px;
    font-weight: bold; cursor: pointer;
}
.prime-button:hover { background: #ea580c; }
.alt-button {
    background: transparent; color: #64748b;
    border: 1px solid #cbd5e1; padding: 12px; border-radius: 8px;
}
.form-actions { display: flex; gap: 10px; margin-top: 10px; }

.api-feedback-alert {
    margin-top: 15px; padding: 12px;
    background: #fee2e2; border: 1px solid #ef4444;
    color: #b91c1c; border-radius: 8px; font-size: 13px;
}