/* ==========================================================================
   Base Container & Global Box-Sizing Reset
   ========================================================================== */
.sa-hub-container,
.sa-hub-container * {
    box-sizing: border-box;
}

.sa-hub-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1d2327;
    line-height: 1.5;
}

/* ==========================================================================
   Form Alignment & Input Normalization (Login & Registration)
   ========================================================================== */
.sa-form,
.sa-register-form {
    width: 100%;
}

.sa-form p,
.sa-register-form p {
    margin: 0 0 18px 0;
}

/* Force label strictly on top of field */
.sa-form label,
.sa-register-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 6px;
    text-align: left;
}

/* Inputs full width & aligned */
.sa-form input[type="text"],
.sa-form input[type="email"],
.sa-form input[type="password"],
.sa-form input[type="url"],
.sa-form textarea,
.sa-register-form input[type="text"],
.sa-register-form input[type="email"],
.sa-register-form input[type="password"],
.sa-register-form input[type="url"],
.sa-register-form textarea {
    display: block;
    width: 100% !important;
    height: 42px;
    padding: 8px 12px;
    font-size: 15px;
    line-height: 1.4;
    color: #2c3338;
    background-color: #fff;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.07);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.sa-form textarea,
.sa-register-form textarea {
    height: auto;
    min-height: 100px;
}

.sa-form input:focus,
.sa-register-form input:focus,
.sa-form textarea:focus,
.sa-register-form textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

/* Section titles inside registration */
.sa-register-form h3 {
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #dcdcde;
    font-size: 16px;
    color: #0073aa;
}

/* Compound Field Rows for Registration */
.sa-grid-row-3 {
    display: grid;
    grid-template-columns: 2fr 100px 2fr;
    gap: 15px;
    margin-bottom: 18px;
}

.sa-grid-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 18px;
}

.sa-grid-row-3 p,
.sa-grid-row-2 p {
    margin-bottom: 0;
}

@media (max-width: 650px) {
    .sa-grid-row-3,
    .sa-grid-row-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Checkbox & Remember Me row alignment */
.sa-remember-row label,
.sa-form .sa-remember-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.sa-remember-row input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0;
}

/* ==========================================================================
   Authentication Box Container
   ========================================================================== */
.sa-auth-box {
    background: #ffffff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 35px 40px;
    max-width: 600px;
    margin: 40px auto;
}

.sa-auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.sa-auth-header h2 {
    font-size: 22px;
    margin: 0 0 8px 0;
}

.sa-auth-header p {
    font-size: 14px;
    color: #646970;
    margin: 0;
}

.sa-tabs-nav {
    display: flex;
    border-bottom: 2px solid #e2e4e7;
    margin-bottom: 25px;
}

.sa-tab-link {
    flex: 1;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: #646970;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.sa-tab-link.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

/* ==========================================================================
   Dashboard View Styles
   ========================================================================== */
.sa-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 22px 28px;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    margin-bottom: 25px;
}

.sa-dashboard-header h2 {
    margin: 0 0 5px 0;
    font-size: 22px;
}

.sa-header-meta {
    font-size: 14px;
    color: #646970;
}

.sa-admin-badge-notice {
    background: #fff8e5;
    border-left: 4px solid #ffb900;
    padding: 12px 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.sa-instruction-card {
    background: #f0f6fc;
    border-left: 4px solid #72aee6;
    padding: 18px 22px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.sa-instruction-card h3 {
    margin: 0 0 8px 0;
    font-size: 17px;
}

.sa-instruction-card p {
    margin: 0;
    font-size: 14px;
}

/* 3-Cards Section Grid */
.sa-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.sa-section-card {
    background: #ffffff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.sa-section-card.is-completed {
    background: #fcfdfc;
    border-color: #c3e6cb;
}

.sa-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sa-section-icon {
    font-size: 30px;
}

.sa-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.sa-badge-pending {
    background: #fff3cd;
    color: #856404;
}

.sa-badge-success {
    background: #d4edda;
    color: #155724;
}

.sa-section-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.sa-section-rules {
    font-size: 13px;
    color: #646970;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.sa-submitted-summary {
    background: #f6f7f7;
    border: 1px solid #e2e4e7;
    border-radius: 5px;
    padding: 14px;
}

.sa-submitted-summary h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
}

.sa-submitted-summary ul {
    margin: 0 0 12px 0;
    padding-left: 18px;
    font-size: 13px;
}

.sa-student-tag {
    color: #646970;
    font-size: 12px;
}

.sa-lock-notice {
    display: block;
    font-size: 11px;
    color: #646970;
    font-weight: 600;
}

/* Pending Account Card */
.sa-card-pending {
    background: #ffffff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 45px 35px;
    text-align: center;
    max-width: 580px;
    margin: 40px auto;
}

.sa-card-icon {
    font-size: 44px;
    margin-bottom: 15px;
}

.sa-notice-warning {
    background: #fff8e5;
    border-left: 4px solid #dba617;
    padding: 12px 16px;
    text-align: left;
    margin: 20px 0;
    font-size: 14px;
}

/* Shared Buttons */
.sa-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    text-align: center;
}

.sa-btn-primary {
    background: #0073aa;
    color: #ffffff;
}

.sa-btn-primary:hover,
.sa-btn-primary:focus {
    background: #005177;
    color: #ffffff;
}

.sa-btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
    border: 1px solid #8c8f94;
}

.sa-btn-outline {
    background: transparent;
    border: 1px solid #ccd0d4;
    color: #2c3338;
}

.sa-btn-block {
    display: block;
    width: 100%;
}

.sa-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}