
/* =========================================================
   REEFHOST CHILD THEME — WHMCS 9 / NEXUS
   Parent theme: Nexus
   File: templates/reefhost/css/custom.css
   ========================================================= */

/* ---------------------------------------------------------
   1. REEFHOST BRAND VARIABLES
   --------------------------------------------------------- */

:root {
    --reef-navy: #050a24;
    --reef-navy-light: #0b1738;
    --reef-cyan: #00d9ff;
    --reef-blue: #acd0f2;

    --primary-50: #e8faff;
    --primary-100: #c9f4ff;
    --primary-200: #9ceaff;
    --primary-300: #60ddff;
    --primary-400: #26cfff;
    --primary-500: #00b9eb;
    --primary-600: #0096c7;
    --primary-700: #087eaa;
    --primary-800: #075f80;
    --primary-900: #084e69;
    --primary-950: #052f43;

    --primary: #050a24;
    --primary-lifted: #0b1738;
    --primary-accented: #12345a;

    --neutral-50: #f7faff;
    --neutral-100: #edf3f8;
    --neutral-200: #dce5ef;
    --neutral-300: #c5d2e0;
    --neutral-400: #9aaabd;
    --neutral-500: #718197;
    --neutral-600: #53657d;
    --neutral-700: #374960;
    --neutral-800: #202f48;
    --neutral-900: #111d35;
    --neutral-950: #080f24;

    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    --text: #18213b;
    --text-muted: #68748a;
    --text-lifted: #374960;
    --text-accented: #111d35;
    --text-inverted: #ffffff;

    --bg: #ffffff;
    --bg-muted: #f4f8fc;
    --bg-lifted: #edf3f8;
    --bg-accented: #dce5ef;
    --bg-inverted: #050a24;

    --border: #dce5ef;
    --border-muted: #e8eef5;
    --border-lifted: #c5d2e0;
    --border-accented: #718197;

    --rounding-sm: 0.35rem;
    --rounding-md: 0.65rem;
    --rounding-lg: 0.9rem;

    --letter-spacing: 0;
}

/* ---------------------------------------------------------
   2. GLOBAL STYLING
   --------------------------------------------------------- */

body {
    color: var(--text);
    background-color: var(--bg-muted);
}

a {
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--primary-600);
}

.btn {
    font-weight: 600;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-primary {
    border-radius: 999px;
    box-shadow: none;
}

.panel,
.card {
    border-radius: var(--rounding-lg);
    box-shadow: 0 4px 16px rgba(5, 10, 36, 0.045);
}

.form-control,
.form-select,
select {
    border-radius: var(--rounding-sm);
}

.form-control:focus,
.form-select:focus,
select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(0, 185, 235, 0.14);
}

.table {
    color: var(--text);
}

.table > thead > tr > th {
    font-weight: 600;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--reef-cyan);
    outline-offset: 2px;
}

/* ---------------------------------------------------------
   3. REEFHOST DASHBOARD WELCOME BANNER
   --------------------------------------------------------- */

body .reef-dashboard-intro {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    width: 100%;
    margin: 0 0 24px;
    padding: 30px;

    color: #ffffff !important;

    background:
        radial-gradient(
            ellipse at 90% 10%,
            rgba(0, 217, 255, 0.22),
            transparent 38%
        ),
        linear-gradient(
            120deg,
            #050a24 0%,
            #0b1738 55%,
            #102b50 100%
        ) !important;

    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(5, 10, 36, 0.1);
}

body .reef-dashboard-copy {
    flex: 1 1 auto;
    min-width: 0;
}

body .reef-eyebrow {
    display: block;
    margin-bottom: 8px;

    color: var(--reef-cyan) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

body .reef-dashboard-intro h2 {
    margin: 0 0 10px;

    color: #ffffff !important;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

body .reef-dashboard-intro p {
    margin: 0;

    color: #d4e4f5 !important;
    font-size: 14px;
    line-height: 1.7;
}

body .reef-order-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 22px;

    color: #050a24 !important;
    background: var(--reef-blue) !important;
    border: 1px solid var(--reef-blue) !important;
    border-radius: 999px;

    font-weight: 700;
    text-decoration: none;
}

body .reef-order-btn:hover,
body .reef-order-btn:focus {
    color: #ffffff !important;
    background: #087eaa !important;
    border-color: #087eaa !important;
}

/* ---------------------------------------------------------
   4. DASHBOARD STATISTICS GRID
   --------------------------------------------------------- */

body .reef-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch;

    gap: 16px !important;
    width: 100%;
    margin: 0 0 28px;
    padding: 0;
}

body a.reef-stat-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;

    float: none !important;
    width: 100% !important;
    min-width: 0;
    min-height: 190px;
    margin: 0 !important;
    padding: 22px !important;

    color: #18213b !important;
    background: #ffffff !important;

    border: 1px solid #dce5ef !important;
    border-radius: 15px !important;

    box-shadow: 0 4px 16px rgba(5, 10, 36, 0.05);

    text-align: left !important;
    text-decoration: none !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

body a.reef-stat-card:hover {
    color: #18213b !important;
    background: #ffffff !important;
    border-color: #9ceaff !important;

    transform: translateY(-3px);

    box-shadow: 0 10px 26px rgba(5, 10, 36, 0.1);
}

/* Icon containers */

body .reef-stat-icon {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    margin: 0 0 18px !important;

    color: #008fb5 !important;
    background: #e8faff !important;

    border-radius: 12px;
    font-size: 18px;
}

/* Card labels */

body .reef-stats-grid .reef-stat-label {
    display: block !important;
    width: 100%;

    margin: 0;

    color: #68748a !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

/* Statistic values */

body .reef-stats-grid .reef-stat-card strong {
    display: block !important;
    width: 100%;

    margin: 6px 0 16px !important;

    color: #050a24 !important;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

/* Card links */

body .reef-stats-grid .reef-stat-link {
    display: block !important;
    width: 100%;

    margin-top: auto;

    color: #087eaa !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

body .reef-stat-link i {
    margin-left: 4px;
}

/* ---------------------------------------------------------
   5. EXISTING WHMCS DASHBOARD PANELS
   --------------------------------------------------------- */

body .client-home-cards .card {
    overflow: hidden;
    margin-bottom: 20px;

    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 14px;

    box-shadow: 0 4px 16px rgba(5, 10, 36, 0.045);
}

body .client-home-cards .card-header {
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e8eef5;
}

body .client-home-cards .card-title {
    color: #050a24;
    font-size: 16px;
    font-weight: 600;
}

body .client-home-cards .card-body {
    padding: 20px;
    background: #ffffff;
}

body .client-home-cards .card-footer {
    background: #ffffff;
    border-top: 1px solid #e8eef5;
}

body .client-home-cards .list-group-item {
    padding: 12px 20px;
    color: #374960;
    background: #ffffff;
    border-color: #e8eef5;
}

body .client-home-cards .list-group-item:hover {
    color: #087eaa;
    background: #f4f8fc;
}

/* ---------------------------------------------------------
   6. RESPONSIVE DASHBOARD
   --------------------------------------------------------- */

@media (max-width: 1199px) {
    body .reef-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    body .reef-dashboard-intro {
        align-items: flex-start;
        flex-direction: column;

        gap: 18px;
        padding: 24px;
    }

    body .reef-dashboard-intro h2 {
        font-size: 23px;
    }

    body .reef-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    body a.reef-stat-card {
        min-height: 175px;
        padding: 16px !important;
    }

    body .reef-stats-grid .reef-stat-card strong {
        font-size: 26px;
    }
}

@media (max-width: 420px) {
    body .reef-stats-grid {
        grid-template-columns: 1fr !important;
    }

    body a.reef-stat-card {
        min-height: 155px;
    }
}


/* =========================================================
   REEFHOST LOGIN PAGE
   WHMCS 9.0 / NEXUS CHILD THEME
   ========================================================= */

/* Full-screen underwater background */

body:has(.reef-login-page) {
    min-height: 100vh;
    background: #040b20 !important;
}

body:has(.reef-login-page)::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(
            ellipse at 15% 20%,
            rgba(0, 153, 204, .18),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 85% 75%,
            rgba(0, 217, 255, .10),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #040918 0%,
            #07152e 48%,
            #061f39 100%
        );
}

/* Main login area */

.reef-login-page {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    width: 100%;
    min-height: 80vh;
    padding: 48px 20px;
    overflow: hidden;
    color: #f7fbff;
    background: transparent;
}

/* Decorative underwater lighting */

.reef-login-background {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.reef-login-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .18;
}

.reef-login-glow-one {
    top: -160px;
    left: -100px;
    background: #00b9eb;
}

.reef-login-glow-two {
    right: -150px;
    bottom: -180px;
    background: #087eaa;
}

.reef-login-orb {
    position: absolute;
    border: 1px solid rgba(172, 208, 242, .13);
    border-radius: 50%;
    background: rgba(0, 217, 255, .025);
}

.reef-login-orb-one {
    top: 12%;
    right: 12%;
    width: 90px;
    height: 90px;
}

.reef-login-orb-two {
    bottom: 15%;
    left: 9%;
    width: 46px;
    height: 46px;
}

.reef-login-orb-three {
    right: 22%;
    bottom: 22%;
    width: 22px;
    height: 22px;
    background: rgba(0, 217, 255, .06);
}

/* Content wrapper */

.reef-login-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* Brand */

.reef-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin: 0 auto 28px;
    color: #ffffff !important;
    text-decoration: none !important;
}

.reef-login-brand:hover {
    color: #00d9ff !important;
}

.reef-login-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #041022;
    background: #00d9ff;
    border-radius: 13px;
    font-size: 20px;
}

.reef-login-brand-name {
    color: #ffffff;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 3px;
}

.reef-login-logo {
    display: block;
    max-width: 220px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Login card */

.reef-login-card {
    padding: 36px;
    color: #18213b;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 22px;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, .32),
        0 4px 18px rgba(0, 0, 0, .12);
}

/* Card heading */

.reef-login-card-heading {
    margin-bottom: 28px;
    text-align: center;
}

.reef-login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    color: #008fb5;
    background: #e8faff;
    border: 1px solid #c9f4ff;
    border-radius: 18px;
    font-size: 23px;
}

.reef-login-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: #087eaa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.reef-login-card-heading h1 {
    margin: 0 0 10px;
    color: #050a24;
    font-size: 29px;
    font-weight: 750;
    line-height: 1.25;
}

.reef-login-card-heading p {
    margin: 0;
    color: #68748a;
    font-size: 13px;
    line-height: 1.7;
}

/* WHMCS feedback messages */

.reef-login-card .alert {
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.reef-login-card .alert a {
    overflow-wrap: anywhere;
}

.reef-login-card .providerLinkingFeedback:empty {
    display: none;
}

/* Login fields */

.reef-login-form {
    margin: 0;
}

.reef-login-field {
    margin-bottom: 21px;
}

.reef-login-field > label,
.reef-login-label-row > label {
    display: block;
    margin-bottom: 9px;
    color: #202f48;
    font-size: 13px;
    font-weight: 700;
}

.reef-login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.reef-login-label-row > label {
    margin-bottom: 9px;
}

.reef-forgot-link {
    margin-bottom: 9px;
    color: #087eaa !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.reef-forgot-link:hover {
    color: #005f80 !important;
    text-decoration: underline;
}

/* Input containers */

.reef-login-input-wrap {
    position: relative;
}

.reef-login-input-wrap > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 15px;
    color: #718197;
    font-size: 14px;
    pointer-events: none;
    transform: translateY(-50%);
}

.reef-login-card .reef-login-input {
    display: block;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 12px 15px 12px 43px;
    color: #18213b;
    background: #f7faff;
    border: 1px solid #dce5ef;
    border-radius: 10px;
    box-shadow: none;
    font-size: 13px;
    line-height: 1.5;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.reef-login-card .reef-login-input::placeholder {
    color: #9aaabd;
    opacity: 1;
}

.reef-login-card .reef-login-input:focus {
    background: #ffffff;
    border-color: #00b9eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 185, 235, .13);
}

/* Remember me */

.reef-login-options {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 2px 0 22px;
}

.reef-remember-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #53657d;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.reef-remember-label input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #0096c7;
}

/* CAPTCHA */

.reef-login-captcha {
    margin: 0 0 20px;
    overflow-wrap: anywhere;
}

.reef-login-captcha img {
    max-width: 100%;
    height: auto;
}

/* Sign-in button */

.reef-login-card .reef-login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 51px;
    margin: 0;
    padding: 13px 20px;
    color: #041022;
    background: #00c4ec;
    border: 1px solid #00c4ec;
    border-radius: 11px;
    box-shadow: 0 6px 16px rgba(0, 185, 235, .18);
    font-size: 14px;
    font-weight: 750;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.reef-login-card .reef-login-submit:hover,
.reef-login-card .reef-login-submit:focus {
    color: #ffffff;
    background: #087eaa;
    border-color: #087eaa;
    box-shadow: 0 8px 22px rgba(8, 126, 170, .25);
}

.reef-login-card .reef-login-submit:active {
    transform: translateY(1px);
}

/* Registration link */

.reef-login-register {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 26px;
    padding-top: 23px;
    border-top: 1px solid #e8eef5;
    color: #68748a;
    font-size: 12px;
    text-align: center;
}

.reef-login-register a {
    color: #087eaa !important;
    font-weight: 750;
    text-decoration: none;
}

.reef-login-register a:hover {
    color: #005f80 !important;
    text-decoration: underline;
}

/* Footer */

.reef-login-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    color: #a9bed4;
    font-size: 11px;
    text-align: center;
}

.reef-login-footer i {
    margin-right: 5px;
    color: #00d9ff;
}

.reef-login-footer-separator {
    color: #53657d;
}

/* Responsive adjustments */

@media (max-width: 767px) {
    .reef-login-page {
        min-height: 75vh;
        padding: 32px 16px;
    }

    .reef-login-card {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .reef-login-card-heading h1 {
        font-size: 26px;
    }

    .reef-login-brand {
        margin-bottom: 22px;
    }
}

@media (max-width: 380px) {
    .reef-login-page {
        padding: 24px 12px;
    }

    .reef-login-card {
        padding: 24px 17px;
    }

    .reef-login-card-heading h1 {
        font-size: 24px;
    }

    .reef-login-brand-name {
        font-size: 20px;
    }
}

/* Reefhost: remove the global header and footer on login only */
body:has(.reef-login-page) > header,
body:has(.reef-login-page) > footer,
body:has(.reef-login-page) header,
body:has(.reef-login-page) footer,
body:has(.reef-login-page) #header,
body:has(.reef-login-page) #footer,
body:has(.reef-login-page) .header,
body:has(.reef-login-page) .footer,
body:has(.reef-login-page) .navbar {
    display: none !important;
}


/* =========================================================
   REEFHOST REGISTRATION PAGE
   WHMCS 9.0 / NEXUS CHILD THEME
   ========================================================= */

/* Registration page background */
body:has(.reef-register-page) {
    min-height: 100vh;
    background: #040b20 !important;
}

body:has(.reef-register-page)::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(
            ellipse at 18% 18%,
            rgba(0, 153, 204, 0.18),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 86% 78%,
            rgba(0, 217, 255, 0.10),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #040918 0%,
            #07152e 48%,
            #061f39 100%
        );
}

/* Hide shared WHMCS header/footer/navigation only on registration */
body:has(.reef-register-page) > header,
body:has(.reef-register-page) > footer,
body:has(.reef-register-page) header,
body:has(.reef-register-page) footer,
body:has(.reef-register-page) #header,
body:has(.reef-register-page) #footer,
body:has(.reef-register-page) .header,
body:has(.reef-register-page) .footer,
body:has(.reef-register-page) .navbar {
    display: none !important;
}

/* Main page layout */
body:has(.reef-register-page) #main-body {
    position: relative;
    z-index: 1;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 30px 16px 50px !important;
    background: transparent !important;
}

body:has(.reef-register-page) #main-body > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.reef-register-page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 20px 0;
    color: #eaf4f8;
}

/* Registration card */
.reef-register-page #registration .card {
    overflow: hidden;
    color: #243746 !important;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28) !important;
}

.reef-register-page #registration .card-header {
    color: #073447 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e6eef2 !important;
}

.reef-register-page #registration .card-body {
    padding: 28px !important;
    color: #243746 !important;
    background: #ffffff !important;
}

.reef-register-page #registration .card-title,
.reef-register-page #registration h1,
.reef-register-page #registration h2,
.reef-register-page #registration h3,
.reef-register-page #registration h4 {
    color: #073447 !important;
}

.reef-register-page #registration .card-title {
    margin-bottom: 24px;
    font-size: 19px;
    font-weight: 700;
}

/* Ensure ordinary text remains readable inside the white card */
.reef-register-page #registration,
.reef-register-page #registration p,
.reef-register-page #registration small,
.reef-register-page #registration .form-text,
.reef-register-page #registration .text-muted,
.reef-register-page #registration .form-check-label,
.reef-register-page #registration .custom-control-label {
    color: #526774;
}

.reef-register-page #registration label {
    display: inline-block;
    margin-bottom: 7px;
    color: #344b58 !important;
    font-size: 13px;
    font-weight: 600;
}

/* Inputs, selects, and text areas */
.reef-register-page #registration input.field,
.reef-register-page #registration input.form-control,
.reef-register-page #registration select.field,
.reef-register-page #registration select.form-control,
.reef-register-page #registration textarea,
.reef-register-page #registration .form-control,
.reef-register-page #registration .form-select {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    color: #172f3b !important;
    background-color: #f8fbfc !important;
    border: 1px solid #d6e0e5 !important;
    border-radius: 8px !important;
    box-shadow: none;
    font-size: 14px;
}

.reef-register-page #registration textarea {
    min-height: 100px;
}

.reef-register-page #registration input::placeholder,
.reef-register-page #registration textarea::placeholder {
    color: #8799a3;
    opacity: 1;
}

.reef-register-page #registration input:focus,
.reef-register-page #registration select:focus,
.reef-register-page #registration textarea:focus,
.reef-register-page #registration .form-control:focus,
.reef-register-page #registration .form-select:focus {
    color: #172f3b !important;
    background-color: #ffffff !important;
    border-color: #0798b2 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 152, 178, 0.14) !important;
}

.reef-register-page #registration .form-group,
.reef-register-page #registration .mb-3 {
    margin-bottom: 18px;
}

.reef-register-page #registration input[type="checkbox"],
.reef-register-page #registration input[type="radio"] {
    accent-color: #0798b2;
}

/* Password strength and validation feedback */
.reef-register-page #registration .progress {
    overflow: hidden;
    height: 7px;
    background: #e8eef2;
    border-radius: 999px;
}

.reef-register-page #registration .alert,
.reef-register-page > .alert {
    border-radius: 10px;
    overflow-wrap: anywhere;
}

/* Primary registration button */
.reef-register-page #registration button[type="submit"],
.reef-register-page #registration input[type="submit"],
.reef-register-page #registration .btn-primary {
    min-height: 49px;
    padding: 12px 24px;
    color: #041022 !important;
    background: #00c4ec !important;
    border: 1px solid #00c4ec !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 16px rgba(0, 185, 235, 0.18);
    font-size: 15px;
    font-weight: 750;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.reef-register-page #registration button[type="submit"]:hover,
.reef-register-page #registration input[type="submit"]:hover,
.reef-register-page #registration .btn-primary:hover {
    color: #ffffff !important;
    background: #087eaa !important;
    border-color: #087eaa !important;
    box-shadow: 0 8px 22px rgba(8, 126, 170, 0.25);
}

/* Secondary buttons */
.reef-register-page #registration .btn-default,
.reef-register-page #registration .btn-secondary {
    color: #344b58 !important;
    background: #edf3f8 !important;
    border: 1px solid #d6e0e5 !important;
    border-radius: 8px !important;
}

/* Links, terms, CAPTCHA and security-question content */
.reef-register-page #registration a {
    color: #087eaa;
    overflow-wrap: anywhere;
}

.reef-register-page #registration a:hover {
    color: #005f80;
}

.reef-register-page #registration .text-center,
.reef-register-page #registration .text-center p,
.reef-register-page #registration .form-check,
.reef-register-page #registration .custom-control {
    color: #526774 !important;
}

.reef-register-page #registration .captcha-container,
.reef-register-page #registration .captcha,
.reef-register-page #registration .g-recaptcha {
    max-width: 100%;
    margin-bottom: 16px;
}

.reef-register-page #registration img {
    max-width: 100%;
    height: auto;
}

/* Mobile layout */
@media (max-width: 767px) {
    body:has(.reef-register-page) #main-body {
        padding: 18px 12px 35px !important;
    }

    .reef-register-page {
        padding: 8px 0;
    }

    .reef-register-page #registration .card-body {
        padding: 20px !important;
    }

    .reef-register-page #registration .card-title {
        font-size: 17px;
    }

    .reef-register-page #registration button[type="submit"],
    .reef-register-page #registration input[type="submit"],
    .reef-register-page #registration .btn-primary {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .reef-register-page #registration .card-body {
        padding: 16px !important;
    }
}

/* =========================================
   REEFHOST REGISTRATION — FIELD ALIGNMENT FIX
   Append to the very bottom of custom.css
   ========================================= */

/* Keep registration field wrappers correctly positioned */
.reef-register-page #registration .form-group,
.reef-register-page #registration .input-group {
    position: relative;
}

/* Standard text inputs and selects */
.reef-register-page #registration input.form-control,
.reef-register-page #registration input.field,
.reef-register-page #registration select.form-control,
.reef-register-page #registration select.field,
.reef-register-page #registration textarea.form-control {
    box-sizing: border-box;
    min-width: 0;
    color: #172f3b !important;
    background-color: #f8fbfc !important;
    border: 1px solid #d6e0e5 !important;
    border-radius: 8px !important;
    font-size: 14px;
}

/* Remove unexpected padding that makes text collide with icons */
.reef-register-page #registration input.form-control,
.reef-register-page #registration input.field {
    padding: 10px 13px !important;
}

/* Hide decorative icons positioned inside registration fields.
   The placeholder already identifies each field. */
.reef-register-page #registration .form-group > i,
.reef-register-page #registration .form-group > .input-group-icon,
.reef-register-page #registration .form-group > .field-icon {
    display: none !important;
}

/* Keep phone input groups and country selectors aligned */
.reef-register-page #registration .input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

.reef-register-page #registration .input-group .input-group-prepend,
.reef-register-page #registration .input-group .input-group-append {
    display: flex;
    flex: 0 0 auto;
}

.reef-register-page #registration .input-group .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 12px;
    color: #344b58;
    background: #edf3f6;
    border: 1px solid #d6e0e5;
    font-size: 14px;
}

.reef-register-page #registration .input-group input.form-control {
    flex: 1 1 0;
    width: 1%;
    min-width: 0;
    border-radius: 0 8px 8px 0 !important;
}

.reef-register-page #registration .input-group .input-group-prepend + input.form-control {
    border-radius: 0 8px 8px 0 !important;
}

/* Focus state */
.reef-register-page #registration input.form-control:focus,
.reef-register-page #registration input.field:focus,
.reef-register-page #registration select.form-control:focus,
.reef-register-page #registration select.field:focus,
.reef-register-page #registration textarea.form-control:focus {
    position: relative;
    z-index: 2;
    color: #172f3b !important;
    background: #ffffff !important;
    border-color: #00b9eb !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 185, 235, 0.13) !important;
}

/* Keep placeholders legible */
.reef-register-page #registration input::placeholder,
.reef-register-page #registration textarea::placeholder {
    color: #8295a3 !important;
    opacity: 1;
}

/* Prevent country and region selects from shrinking */
.reef-register-page #registration select {
    width: 100%;
    min-width: 0;
}

/* Mobile */
@media (max-width: 767px) {
    .reef-register-page #registration .input-group {
        width: 100%;
    }

    .reef-register-page #registration .input-group .input-group-text {
        padding: 0 9px;
        font-size: 13px;
    }
}

/* =========================================
   REEFHOST REGISTRATION — PHONE FIELD FIX
   ========================================= */

/* Keep the country selector and phone input on one line */
.reef-register-page #registration .iti,
.reef-register-page #registration .intl-tel-input {
    display: block;
    position: relative;
    width: 100%;
}

/* Reserve space for the flag and dial code */
.reef-register-page #registration .iti input[type="tel"],
.reef-register-page #registration .intl-tel-input input[type="tel"],
.reef-register-page #registration input[name="phone"],
.reef-register-page #registration input[name="phonenumber"] {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 100px !important;
    text-align: left !important;
}

/* Prevent the flag/country selector from being compressed */
.reef-register-page #registration .iti__flag-container,
.reef-register-page #registration .iti__selected-country,
.reef-register-page #registration .intl-tel-input .flag-container {
    position: absolute;
    top: 1px;
    bottom: 1px;
    left: 1px;
    z-index: 5;
    display: flex;
    align-items: center;
    min-width: 82px;
    background: #edf3f6;
    border-radius: 7px 0 0 7px;
}

/* Keep the dial code readable */
.reef-register-page #registration .iti__selected-dial-code {
    margin-left: 5px;
    white-space: nowrap;
}

/* Avoid the flag selector covering the phone number */
.reef-register-page #registration .iti--allow-dropdown input,
.reef-register-page #registration .intl-tel-input.allow-dropdown input {
    padding-left: 100px !important;
}