*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f0f4f8;
    color: #1a202c;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    margin: 1rem;
}

.portal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.portal-logo {
    max-height: 56px;
    margin-bottom: 0.5rem;
}

.portal-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2b6cb0;
}

/* Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.6rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: #718096;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.tab-btn.active {
    color: #2b6cb0;
    border-bottom-color: #2b6cb0;
    font-weight: 600;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Forms */
.portal-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.portal-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
}

.portal-form input {
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    width: 100%;
}

.portal-form input:focus {
    outline: none;
    border-color: #2b6cb0;
}

.form-alt {
    font-size: 0.85rem;
    text-align: center;
    color: #718096;
}

.form-alt a { color: #2b6cb0; }

/* Buttons */
.btn-primary {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: #2b6cb0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary:hover { background: #2c5282; }

.btn-social {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: opacity 0.2s;
}

.btn-social:hover { opacity: 0.88; }

.btn-google  { background: #fff; border: 1.5px solid #cbd5e0; color: #1a202c; }
.btn-facebook { background: #1877f2; color: #fff; border: none; }

/* Status icons */
.status-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}
.status-icon.success { color: #38a169; }
.status-icon.error   { color: #e53e3e; }

.portal-main h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.portal-main p { text-align: center; color: #4a5568; margin-bottom: 1rem; }

/* Footer */
.portal-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #a0aec0;
}

.portal-footer a { color: #a0aec0; }
