/*
Plugin Name: WPITCOM Portal Prepare
Plugin URI: https://www.wpitcom/products/wp-plugins
Description: Turn your wordpress installation into a portal based page
Version: 1.0
Author: WPITCOM S.A.
Author URI: http://www.wpitcom.com/

Text Domain: wpitcom-portal-prepare
Domain Path: /languages

License: See License.txt
License URI: https://www.wpitcom.com/licenses/wpitcom-portal-prepare
*/

@charset "UTF-8";
@import url("variables.css");

:root {
    --wpit-blue: #071238;
    --wpit-blue-light: #1f4fb8;
    --wpit-red-deep: #640a1e;
    --wpit-gold: #cca040;
    --wpit-gold-soft: #e6c35f;
    --bg-deep: #040818;
    --card-bg: rgba(5, 8, 24, 0.96);
    --text-light: #f8fafc;
    --text-muted: #a0aec0;
    --border-soft: rgba(255, 255, 255, 0.12);
    --radius-lg: 18px;
    --radius-full: 999px;
    --shadow-soft: 0 22px 50px rgba(0, 0, 0, 0.7);
    --transition-fast: 0.2s ease-out;
}

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

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-light);
    background: var(--bg-deep);
}

body {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

#login {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    color: var(--text-light);
    overflow: hidden;
    padding: 4rem 8rem;
}

@media (max-width: 960px) {
    #login {
        padding: 6rem 8rem 5rem;
    }
}

/* Background */
#login::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("wpitcom-login-bg.png") center center / cover no-repeat fixed;
    z-index: -2;
    transform: scale(1.03);
}

#login::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(31, 79, 184, 0.45), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(100, 10, 30, 0.55), transparent 55%),
        linear-gradient(145deg, rgba(4, 8, 24, 0.9), rgba(4, 8, 24, 0.96));
    mix-blend-mode: overlay;
    z-index: -1;
}

.login-action-confirm_admin_email #login {
    width: 100% !important;
    max-width: 100% !important;
}

/* Top bar (mainly for mobile) */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 5vw;
    z-index: 5;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.top-bar-logo {
    width: 32px;
    height: 32px;
    border-radius: 0.9rem;
    background: radial-gradient(circle at 20% 0%, var(--wpit-gold-soft), var(--wpit-gold));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.top-bar-text {
    display: flex;
    flex-direction: column;
}

.top-bar-text span:first-child {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.top-bar-text span:last-child {
    font-size: 0.85rem;
    font-weight: 600;
}

.top-bar-login-btn {
    display: none;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, var(--wpit-blue-light), var(--wpit-red-deep));
    color: #ffffff;
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.top-bar-login-btn span.icon {
    font-size: 1rem;
}

@media (min-width: 961px) {
    .top-bar-login-btn {
        display: none;
        /* hide login button on desktop */
    }
}

@media (max-width: 960px) {
    .top-bar {
        padding-inline: 1.5rem;
        background: linear-gradient(90deg,
                rgba(4, 8, 24, 0.95),
                rgba(7, 18, 56, 0.96),
                rgba(100, 10, 30, 0.9));
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .top-bar-login-btn {
        display: inline-flex;
    }
}

/* Main container */
.login-main {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 1.5rem 5vw 1rem;
}

.login-container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

@media (max-width: 960px) {
    .login-container {
        grid-template-columns: minmax(0, 1fr);
        padding-inline: 0;
        gap: 2rem;
    }
}

/* Left – brand section */
.brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.3rem;
    color: var(--text-light);
}

.brand-panel-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 1rem;
    background: radial-gradient(circle at 10% 0%, var(--wpit-gold-soft), var(--wpit-gold));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.brand-name {
    display: flex;
    flex-direction: row;
}

.brand-name span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    overflow: hidden;
    width: 13rem;
    padding: 1.5rem;
    background-color: white;
    cursor: pointer;
}

.brand-name span img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name span:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 5rem;
    border-bottom-left-radius: 5rem;
    border-bottom-right-radius: 0;
}

.brand-name span:last-child {
    border-top-left-radius: 5rem;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 5rem;
    background-color: white;
}

.brand-headline {
    margin-top: 1.2rem;
    font-size: 2.8rem;
    /* clamp(1.9rem, 2.5vw + 1rem, 2.5rem); */
    font-weight: bolder;
    line-height: 1.25;
    text-align: start !important;
}

.brand-headline span.highlight {
    background: linear-gradient(135deg, #ffefb3, var(--wpit-gold-soft), var(--wpit-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 1rem;
    max-width: 34rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.brand-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.7rem;
}

.brand-badge {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    backdrop-filter: blur(10px);
    background: linear-gradient(130deg,
            rgba(7, 18, 56, 0.8),
            rgba(100, 10, 30, 0.55));
}

.brand-badge span.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wpit-gold-soft);
}

.brand-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}

@media (max-width: 960px) {
    .brand-feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

.feature-card {
    position: relative;
    background: linear-gradient(150deg,
            rgba(4, 8, 24, 0.96),
            rgba(7, 18, 56, 0.94));
    border-radius: 16px;
    padding: 0.9rem 0.9rem 1.1rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    backdrop-filter: blur(12px);
    transition: transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-4px) translateZ(0);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.7);
    background: linear-gradient(150deg,
            rgba(7, 18, 56, 0.98),
            rgba(100, 10, 30, 0.8));
}

.feature-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto;
}

.feature-icon2 {
    margin: 0 auto;
    font-size: 2.5rem;
}

.feature-title {
    font-size: 0.86rem;
    font-weight: 600;
    text-align: center;
}

.feature-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Right – login card */
.login-card-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 960px) {
    .login-card-wrapper {
        justify-content: center;
    }
}

.login-card {
    width: 100%;
    max-width: 390px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2.2rem 2.1rem 2rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(20px);
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.8rem 1.4rem 1.6rem;
    }
}

.login-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    margin-top: 1rem;
    margin-bottom: .5rem;
}

.login-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.6rem;
}

.product-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.18rem 0.65rem 0.18rem 0.25rem;
    border-radius: var(--radius-full);
    background: rgba(7, 18, 56, 0.9);
    border: 1px solid rgba(204, 160, 64, 0.8);
    font-size: 0.72rem;
    color: #fef7e2;
    margin-bottom: 0.8rem;
}

.product-pill-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 20% 0%, var(--wpit-gold-soft), var(--wpit-gold));
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    margin-bottom: 0.3rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(2, 6, 18, 0.9);
    color: var(--text-light);
    font-size: 0.85rem;
    outline: none;
    transition: border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast),
        transform var(--transition-fast);
}

.form-control:focus {
    border-color: rgba(204, 160, 64, 0.98);
    background: rgba(2, 6, 18, 0.98);
    box-shadow: 0 0 0 1px rgba(204, 160, 64, 0.8),
        0 14px 32px rgba(0, 0, 0, 0.6);
    transform: translateY(-1px);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.3rem;
    font-size: 0.78rem;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    color: var(--text-muted);
}

.checkbox input {
    width: 14px;
    height: 14px;
    accent-color: var(--wpit-gold);
}

.forgot-link {
    color: #ffefb3;
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    border: .1rem solid;
    border-radius: var(--radius-full);
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, #1b1220, #1b1220);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.8);
    transition: transform var(--transition-fast),
        box-shadow var(--transition-fast),
        filter var(--transition-fast);
    margin: 1rem 0 0;
}

.btn-primary span.arrow {
    font-size: 1.1rem;
    transform: translateX(0);
    transition: transform var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
    filter: brightness(1.04);
}

.btn-primary:hover span.arrow {
    transform: translateX(3px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.8);
}

.login-meta {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.login-meta strong {
    color: #fef7e2;
}

.login-meta a {
    color: #ffefb3;
    text-decoration: none;
}

.login-meta a:hover {
    text-decoration: underline;
}

.login-footnote {
    margin-top: 0.6rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.9;
}

/* Legal footer */
.legal-footer {
    width: 100%;
    padding: 0.3rem 5vw 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(90deg,
            rgba(4, 8, 24, 0.96),
            rgba(7, 18, 56, 0.96),
            rgba(100, 10, 30, 0.9));
    backdrop-filter: blur(12px);
    z-index: 5;
    position: fixed;
    bottom: 0;
    left: 0;
    opacity: .92;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.legal-links a {
    color: #ffefb3;
    text-decoration: none;
}

.legal-links a:hover {
    text-decoration: underline;
}

@media (max-width: 960px) {
    .legal-footer {
        padding-inline: 1.5rem;
        align-items: flex-start;
    }
}

/* Mobile login toggle behaviour */
@media (max-width: 960px) {
    #login:not(.login-open) .login-card-wrapper {
        display: none;
    }

    #login.login-open .brand-panel {
        display: none;
    }
}

.login form {
    background-color: transparent;
    border: unset;
    padding: 0;
}

.login form input[type=text],
.login form input[type=password] {
    font-size: 1.1rem !important;
}

.forgetmenot {
    margin: 1rem 0;
}

.login #nav {
    margin: 1.2rem 0 0;
    display: flex;
    justify-content: center;
    padding: 0;
}

.login #nav a {
    color: #7b8691;
}

.login .notice {
    margin: .5rem 0 0;
}

.login .notice-error {
    background-color: rgba(var(--five-color), .25);
}

.login .notice-warning {
    background-color: rgba(var(--fourth-color), .3);
}

.login .notice-success {
    background-color: rgba(var(--six-color), .3);
}