/* Cap Connect – simple centered login (concept A). Loaded on the login page only. */

#header,
#main-menu,
#footer,
#main-body .sidebar,
#main-body .header-lined { display: none !important; }

body { background: #f6f9ff !important; }

#main-body {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    min-height: 100vh;
}
#main-body > .container { width: 100% !important; max-width: none !important; padding: 0 !important; }
#main-body > .container > .row { margin: 0 !important; }
#main-body .main-content { width: 100% !important; float: none !important; padding: 0 !important; }

.cc-auth {
    --cc-navy: #324a6d;
    --cc-ink: #1d2b40;
    --cc-text: #34445c;
    --cc-muted: #5d6b80;
    --cc-line: #d5ddea;
    --cc-blue: #1463c9;
    --cc-blue-dark: #0f4f9f;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 20px 24px;
    font-family: Outfit, sans-serif;
    color: var(--cc-text);
}
.cc-auth *, .cc-auth *::before, .cc-auth *::after { box-sizing: border-box; }
.cc-auth a { color: var(--cc-blue); text-decoration: none; }
.cc-auth a:hover, .cc-auth a:focus { color: var(--cc-blue-dark); text-decoration: underline; }

.cc-auth-logo { display: block; margin-bottom: 32px; }
.cc-auth-logo img { height: 40px; width: auto; display: block; }
.cc-auth-logo span { font-size: 26px; font-weight: 700; color: var(--cc-navy); }

.cc-auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e3e9f3;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(50, 74, 109, .08);
    padding: 36px 36px 32px;
}

.cc-auth-head { text-align: center; margin-bottom: 22px; }
.cc-auth-head h1 { margin: 0 0 4px; font-size: 24px; line-height: 1.25; font-weight: 600; color: var(--cc-ink); }
.cc-auth-head p { margin: 0; font-size: 14px; color: var(--cc-muted); }

.cc-auth-card .alert { border-radius: 10px; font-size: 14px; margin-bottom: 18px; }

.cc-auth-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.cc-auth-field { display: flex; flex-direction: column; gap: 6px; }
.cc-auth-field label,
.cc-auth-labelrow label { margin: 0; font-size: 14px; font-weight: 500; color: var(--cc-text); }
.cc-auth-labelrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cc-auth-labelrow a { font-size: 13px; font-weight: 500; }

.cc-auth-input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--cc-line);
    border-radius: 10px;
    padding: 0 14px;
    font: inherit;
    font-size: 15px;
    color: var(--cc-ink);
    background: #fff;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.cc-auth-input:focus { outline: none; border-color: var(--cc-blue); box-shadow: 0 0 0 3px rgba(20, 99, 201, .15); }

.cc-auth-pwd { position: relative; }
.cc-auth-pwd .cc-auth-input { padding-inline-end: 46px; }
.cc-auth-eye {
    position: absolute;
    inset-inline-end: 3px;
    top: 3px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7a90;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.cc-auth-eye:hover, .cc-auth-eye[aria-pressed="true"] { color: var(--cc-blue); }

.cc-auth-check { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 400; color: var(--cc-muted); cursor: pointer; }
.cc-auth-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--cc-blue); }

.cc-auth-captcha:empty { display: none; }
.cc-auth-captcha .row { margin: 0; }

.cc-auth-submit {
    height: 48px;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: var(--cc-blue);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.cc-auth-submit:hover, .cc-auth-submit:focus { background: var(--cc-blue-dark); }

.cc-auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; font-size: 13px; color: #8a97ab; }
.cc-auth-or::before, .cc-auth-or::after { content: ""; flex: 1; height: 1px; background: #e3e9f3; }

.cc-auth-social h2, .cc-auth-social h3, .cc-auth-social .sub-heading { display: none; }
.cc-auth-social .social-signin-btns { display: flex; justify-content: center; margin: 0; }
.cc-auth-social .btn-social { padding: 0; border: 0; background: none; box-shadow: none; }

.cc-auth-register { margin: 24px 0 0; font-size: 14px; color: var(--cc-muted); text-align: center; }
.cc-auth-register a { font-weight: 600; }

.cc-auth-foot {
    margin-top: auto;
    padding-top: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 18px;
    font-size: 13px;
    color: #6b7a90;
}
.cc-auth-foot a { color: #6b7a90; }

.cc-auth-lang { position: relative; }
.cc-auth-lang summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    color: var(--cc-text);
    cursor: pointer;
}
.cc-auth-lang summary::-webkit-details-marker { display: none; }
.cc-auth-lang-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    inset-inline-start: 0;
    min-width: 160px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e3e9f3;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(50, 74, 109, .12);
    display: flex;
    flex-direction: column;
    z-index: 10;
}
.cc-auth-lang-menu a { padding: 8px 10px; border-radius: 6px; color: var(--cc-text) !important; }
.cc-auth-lang-menu a:hover { background: #f2f5fa; text-decoration: none !important; }

@media (max-width: 480px) {
    .cc-auth { padding-top: 40px; }
    .cc-auth-card { padding: 28px 22px 24px; border-radius: 14px; }
    .cc-auth-head h1 { font-size: 21px; }
}
