/* Shared corporate auth layout styles for login/register/forgot-password
   Kept in a single file to avoid duplicating large inline <style> blocks across Blade templates.
*/

/* Layout */
.corp-login{
    min-height:100vh;
    display:grid;
    grid-template-columns:1fr;
    background:#f6f8fb;
}
@media (min-width:992px){
    .corp-login{grid-template-columns:1.1fr 0.9fr;}
}

.corp-left{
    display:none;
    position:relative;
    overflow:hidden;
    background:#0f172a;
}
@media (min-width:992px){
    .corp-left{display:block;}
}

.corp-left::before{
    content:'';
    position:absolute;
    inset:0;
    background-image:
        linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.72) 55%, rgba(15,23,42,0.92) 100%),
        url('../images/dashboard-preview.webp');
    background-size:cover;
    background-position:center;
    filter:saturate(0.85) contrast(1.02);
    transform:scale(1.03);
}

.corp-left::after{
    content:'';
    position:absolute;
    inset:0;
    background:
        radial-gradient(1200px 700px at 20% 25%, rgba(37,99,235,0.18), transparent 55%),
        radial-gradient(900px 600px at 80% 80%, rgba(14,165,233,0.10), transparent 60%),
        radial-gradient(900px 900px at 50% 50%, transparent 55%, rgba(0,0,0,0.45) 100%),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px);
    mix-blend-mode:overlay;
    pointer-events:none;
}

.corp-left-inner{
    position:relative;
    z-index:1;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:3.25rem;
    color:#e5e7eb;
    padding-top:calc(3.25rem + 96px);
}

.corp-right{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:2.5rem 1.25rem;
    padding-top:calc(2.5rem + 96px);
}
@media (min-width:992px){
    .corp-right{
        padding:3.25rem;
        padding-top:calc(3.25rem + 96px);
    }
}

/* Card */
.corp-card{
    width:100%;
    max-width:520px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    box-shadow:0 12px 30px rgba(15,23,42,0.08);
    overflow:hidden;
}

.corp-card-header{
    padding:1.5rem 1.75rem;
    border-bottom:1px solid #eef2f7;
    background:#fff;
}

.corp-card-header h1{
    font-size:1.35rem;
    font-weight:780;
    margin:0;
    color:#0f172a;
    letter-spacing:-0.01em;
}

.corp-card-header p{
    margin:0;
    color:#64748b;
    font-size:0.95rem;
    line-height:1.5;
}

.corp-card-body{padding:1.75rem;}

/* Branding blocks */
.corp-brand{
    display:flex;
    align-items:center;
    gap:0.75rem;
}

.corp-brand img{
    width:44px;
    height:44px;
    object-fit:contain;
    border-radius:10px;
    background:rgba(255,255,255,0.95);
    padding:6px;
}

.corp-brand .name{
    font-size:1.05rem;
    font-weight:750;
    color:#fff;
    margin:0;
    line-height:1.2;
}

.corp-brand .tagline{
    font-size:0.85rem;
    color:rgba(255,255,255,0.75);
    margin:0;
}

.corp-card-header .mobile-brand{
    display:flex;
    align-items:center;
    gap:0.65rem;
    margin-bottom:1rem;
}
@media (min-width:992px){
    .corp-card-header .mobile-brand{display:none;}
}

.corp-card-header .mobile-brand img{
    width:36px;
    height:36px;
    object-fit:contain;
    border-radius:10px;
    background:#f8fafc;
    padding:6px;
    border:1px solid #e5e7eb;
}

.corp-card-header .mobile-brand .name{
    margin:0;
    font-size:0.95rem;
    font-weight:750;
    color:#0f172a;
    line-height:1.1;
}

.corp-card-header .mobile-brand .tagline{
    margin:0;
    font-size:0.8rem;
    color:#64748b;
}

/* Text / content */
.corp-left-content{max-width:560px;}
.corp-left-content h2{
    font-size:2.05rem;
    line-height:1.2;
    font-weight:780;
    margin:0 0 0.75rem 0;
    color:#fff;
    letter-spacing:-0.02em;
}
.corp-left-content p{
    margin:0;
    font-size:1rem;
    line-height:1.7;
    color:rgba(255,255,255,0.78);
}

.corp-pills{
    display:flex;
    flex-wrap:wrap;
    gap:0.5rem;
    margin-top:1.25rem;
}

.corp-pill{
    font-size:0.82rem;
    padding:0.45rem 0.7rem;
    border-radius:999px;
    background:rgba(255,255,255,0.10);
    border:1px solid rgba(255,255,255,0.14);
    color:rgba(255,255,255,0.86);
}

.corp-left-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    font-size:0.82rem;
    color:rgba(255,255,255,0.65);
    border-top:1px solid rgba(255,255,255,0.10);
    padding-top:1.25rem;
}

.corp-status{
    display:inline-flex;
    align-items:center;
    gap:0.5rem;
}

.corp-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#22c55e;
    box-shadow:0 0 0 4px rgba(34,197,94,0.15);
}

/* Alerts */
.corp-alert{
    margin-bottom:1rem;
    padding:0.9rem 1rem;
    border-radius:12px;
    background:#fef2f2;
    border:1px solid #fee2e2;
    color:#991b1b;
    display:flex;
    gap:0.65rem;
    align-items:flex-start;
}

.corp-alert i{
    margin-top:2px;
    color:#dc2626;
}

.corp-alert--success{
    background:#ecfdf5;
    border-color:#bbf7d0;
    color:#065f46;
}

.corp-alert--success i{color:#059669;}

/* Form controls */
.corp-field{margin-bottom:1rem;}

.corp-label{
    display:block;
    font-size:0.85rem;
    font-weight:650;
    color:#0f172a;
    margin-bottom:0.45rem;
}

.corp-input-wrap{position:relative;}

.corp-input-icon{
    position:absolute;
    left:0.85rem;
    top:50%;
    transform:translateY(-50%);
    color:#94a3b8;
    font-size:1.05rem;
    pointer-events:none;
}

.corp-input{
    width:100%;
    height:44px;
    border-radius:12px;
    border:1px solid #dbe3ee;
    background:#fff;
    padding:0 0.95rem 0 2.65rem;
    font-size:0.95rem;
    color:#0f172a;
    transition:box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}

.corp-input.is-invalid{
    border-color:#ef4444 !important;
    background:#fff5f5;
}

.corp-input::placeholder{color:#94a3b8;}

.corp-input:focus{
    outline:none;
    border-color:var(--bs-primary, #2563eb);
    box-shadow:0 0 0 4px color-mix(in srgb, var(--bs-primary, #2563eb) 18%, transparent);
}

.corp-input-wrap:focus-within .corp-input-icon{
    color:var(--bs-primary, #2563eb);
}

.corp-btn{
    width:100%;
    height:46px;
    border-radius:12px;
    border:1px solid var(--bs-primary, #2563eb);
    background:var(--bs-primary, #2563eb);
    color:#fff;
    font-weight:750;
    font-size:0.95rem;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:0.5rem;
    transition:filter .15s ease, transform .08s ease;
}

.corp-btn:hover{filter:brightness(0.92);}
.corp-btn:active{transform:translateY(1px);}
.corp-btn:disabled{opacity:0.7; cursor:not-allowed;}

.corp-link{
    font-size:0.9rem;
    color:var(--bs-primary, #2563eb);
    text-decoration:none;
    font-weight:700;
}

.corp-link:hover{filter:brightness(0.9); text-decoration:underline;}

.corp-meta{
    margin-top:1.25rem;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    color:#94a3b8;
    font-size:0.85rem;
}

.corp-meta a{
    color:#64748b;
    text-decoration:none;
}

.corp-meta a:hover{color:#0f172a;}

.corp-recaptcha{margin:1rem 0;}

/* Login-specific helpers (also safe for other pages) */
.corp-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:0.75rem;
    margin:0.25rem 0 1.25rem 0;
}

.corp-remember{
    display:inline-flex;
    align-items:center;
    gap:0.5rem;
}

.corp-remember label{
    margin:0;
    font-size:0.9rem;
    color:#334155;
}

.corp-password{position:relative;}

.corp-toggle{
    position:absolute;
    right:0.55rem;
    top:50%;
    transform:translateY(-50%);
    border:0;
    background:transparent;
    color:#64748b;
    padding:0.4rem;
    border-radius:10px;
}

.corp-password .corp-input{padding-right:2.75rem;}

.corp-toggle:hover{color:#0f172a;}

.corp-input-wrap:focus-within .corp-toggle{color:var(--bs-primary, #2563eb);}

/* Better keyboard focus */
.corp-input:focus-visible,
.corp-btn:focus-visible,
.corp-toggle:focus-visible,
header.dash-header a:focus-visible{
    outline:3px solid rgba(37,99,235,0.35);
    outline-offset:2px;
    border-radius:12px;
}

/* Typewriter + welcome animation (used by login) */
.typewriter{display:inline-block; white-space:nowrap;}
.typewriter-right{white-space:normal;}
.welcome-title .typewriter-right{display:inline;}
.typewriter.is-typing{
    border-right:2px solid rgba(255,255,255,0.65);
    padding-right:2px;
    animation:typeCursorBlink 900ms step-end infinite;
}
@keyframes typeCursorBlink{50%{border-color:transparent;}}

.welcome-title{
    text-align:center;
    padding:0.25rem 0;
    min-height:1.6em;
    animation:welcomeFadeUp 900ms ease-out both;
}
@keyframes welcomeFadeUp{
    0%{opacity:0; transform:translateY(10px);}
    100%{opacity:1; transform:translateY(0);}
}

/* Make auth pages full-width (theme constrains .custom-login-inner) */
.custom-login{
    align-items:stretch !important;
    justify-content:stretch !important;
}

.custom-login .custom-login-inner{
    max-width:none !important;
    width:100% !important;
    padding:0 !important;
    min-height:100vh !important;
}

main.custom-wrapper{
    padding-top:0 !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    display:block !important;
}

.custom-login .custom-wrapper{
    width:100% !important;
    max-width:none !important;
    padding:0 !important;
}

/* Float the existing navbar/header */
header.dash-header{
    top:20px !important;
    left:14px !important;
    right:14px !important;
    border-radius:14px;
    overflow:visible;
    background:transparent !important;
    backdrop-filter:blur(8px);
    box-shadow:0 1px 2px rgba(0,0,0,0.08) !important;
    border:1px solid rgba(255,255,255,0.18);
    z-index:1200;
}

header.dash-header .dropdown-menu{z-index:1300;}

header.dash-header .navbar{
    background:transparent !important;
    padding-top:6px;
    padding-bottom:6px;
}

header.dash-header .navbar-brand img.logo{max-height:44px !important;}
header.dash-header .nav-link{padding-top:0.35rem; padding-bottom:0.35rem;}

@media (max-width:991.98px){
    header.dash-header{
        top:14px !important;
        left:10px !important;
        right:10px !important;
        border-radius:12px;
        background:transparent !important;
    }

    header.dash-header .navbar{padding-top:5px; padding-bottom:5px;}
}
