/* ==========================================================
   SRC INTRANET LOGIN - Cleaned & Consolidated CSS
   ========================================================== */

:root {
    --primary: #d88708;
    --primary-dark: #b76b00;
    --primary-light: #f4b041;
    --white: #ffffff;
    --text: #222222;
    --muted: #6d6d6d;
    --border: #e8e8e8;
    --glass: rgba(255, 255, 255, 0.16);
    --shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #ececec;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===================================
   MAIN LAYOUT
   =================================== */

.container {
    display: grid;
    grid-template-columns: 55% 45%;
    min-height: 100vh;
    width: 100%;
}

/* ===================================
   LEFT PANEL (HERO & GRAPHICS)
   =================================== */

.left-panel {
    position: relative;
    overflow: hidden;
    background: #c97800;
}

.left-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.18), transparent 38%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.10), transparent 28%),
        radial-gradient(circle at 40% 85%, rgba(255, 255, 255, 0.12), transparent 35%);
    mix-blend-mode: screen;
    z-index: 2;
}

.background {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: sepia(0.45) saturate(170%) hue-rotate(-12deg) brightness(0.92);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(220, 122, 0, 0.72), rgba(188, 101, 0, 0.85));
    z-index: 1;
}

.glass-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0) 70%);
    mix-blend-mode: screen;
}

/* SVG Glass & Fractures */
.fractures {
    pointer-events: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.glass {
    fill: url(#glassFill);
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 1.2;
    transition: 0.8s;
    transform-origin: center;
}

.glass.small {
    fill: rgba(255, 255, 255, 0.12);
}

.left-panel:hover .glass {
    transform: translateY(-4px);
    fill: rgba(255, 255, 255, 0.18);
}

.shine {
    fill: none;
    stroke: url(#reflection);
    stroke-width: 5;
    opacity: 0.75;
    filter: url(#glassBlur);
}

.fracture-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.65);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.8;
}

/* Branding & Hero Text */
.branding {
    position: absolute;
    top: 60px;
    left: 70px;
    z-index: 5;
    color: var(--white);
}

.branding span {
    display: block;
    letter-spacing: 12px;
    font-size: 22px;
    font-weight: 300;
}

.hero-text {
    position: absolute;
    left: 70px;
    bottom: 80px;
    width: 420px;
    color: var(--white);
    z-index: 5;
}

.hero-text h2 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 300;
    margin-bottom: 25px;
}

.hero-text p {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Floating Animations */
.g1 { animation: float1 14s ease-in-out infinite; }
.g2 { animation: float2 17s ease-in-out infinite; }
.g3 { animation: float3 16s ease-in-out infinite; }
.g4 { animation: float4 13s ease-in-out infinite; }
.g5 { animation: float5 18s ease-in-out infinite; }
.g6 { animation: float6 15s ease-in-out infinite; }

@keyframes float1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4px, -8px); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -5px); } }
@keyframes float3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6px, 6px); } }
@keyframes float4 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, -4px); } }
@keyframes float5 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-5px, 7px); } }
@keyframes float6 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(5px, -6px); } }

/* ===================================
   RIGHT PANEL & LOGIN FORM
   =================================== */

.right-panel {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    padding: 40px 20px;
}

.right-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 170px 170px;
    opacity: 0.8;
}

/* Floating Polygons */
.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.poly {
    position: absolute;
    backdrop-filter: blur(5px);
    background: rgba(216, 135, 8, 0.08);
    border: 1px solid rgba(216, 135, 8, 0.18);
    animation: drift 16s linear infinite;
}

.p1 { width: 160px; height: 160px; clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0 38%); top: 8%; right: 10%; }
.p2 { width: 90px; height: 90px; transform: rotate(25deg); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0 50%); bottom: 18%; left: 8%; animation-duration: 18s; }
.p3 { width: 130px; height: 130px; clip-path: polygon(0 0, 100% 15%, 85% 100%, 15% 80%); top: 45%; right: -35px; }
.p4 { width: 70px; height: 70px; clip-path: polygon(50% 0%, 100% 100%, 0 100%); top: 30%; left: 18%; }
.p5 { width: 220px; height: 220px; border-radius: 50%; background: rgba(216, 135, 8, 0.04); bottom: -80px; right: -60px; }

@keyframes drift {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(8deg); }
}

/* Glass Login Card */
.login-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 45px 40px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 45px 80px rgba(0, 0, 0, 0.12), 0 20px 35px rgba(216, 135, 8, 0.08), inset 0 1px rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: 0.45s;
    z-index: 5;
}

.login-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 65px 120px rgba(0, 0, 0, 0.16), 0 25px 50px rgba(216, 135, 8, 0.14);
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 25px;
}

.card-logo {
    max-width: 180px;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.login-card small { 
    color: #777; 
    font-size: 18px; 
    font-weight: 500;
}

.login-card p { 
    color: #777; 
    margin-top: 6px; 
    line-height: 1.6; 
    margin-bottom: 30px; 
    font-size: 15px;
}

/* Form Controls */
.field {
    position: relative;
    margin-bottom: 20px;
}

.field i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    transition: 0.35s;
}

.field input {
    width: 100%;
    height: 58px;
    padding-left: 56px;
    padding-right: 20px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    transition: 0.35s;
}

.field::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffb238, #d88708);
    transition: 0.35s;
}

.field:focus-within::after { width: 100%; }
.field input:focus {
    outline: none;
    border-color: #ffb238;
    box-shadow: 0 12px 30px rgba(216, 135, 8, 0.18);
}
.field:focus-within i {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 25px;
    font-size: 14px;
}
.options label { 
    color: #666; 
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.options a { color: var(--primary); text-decoration: none; font-weight: 500; }

/* Buttons */
.login-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    color: var(--white);
    font-size: 17px;
    font-weight: 600;
    background: linear-gradient(135deg, #efab30, #d88708);
    transition: 0.35s;
    box-shadow: 0 14px 28px rgba(216, 135, 8, 0.3);
}

.login-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-25deg);
}

.login-btn:hover::before { animation: shine 0.9s; }
.login-btn:hover { transform: translateY(-2px); }

@keyframes shine {
    from { left: -120%; }
    to { left: 180%; }
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    margin: 0 15px;
    color: #999;
    font-size: 13px;
    font-weight: 600;
}

.microsoft {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 54px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: var(--white);
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: 0.35s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.microsoft i { color: #f25022; margin-right: 10px; font-size: 18px; }
.microsoft:hover:not(:disabled) {
    background: #faf7f1;
    border-color: var(--primary);
    transform: translateY(-2px);
}
.microsoft:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #777;
}
.footer a { color: var(--primary); text-decoration: none; font-weight: 500; }

/* ===================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   =================================== */

@media (min-width: 1600px) {
    .container { grid-template-columns: 58% 42%; }
    .branding h1 { font-size: 110px; }
    .hero-text { width: 520px; }
    .hero-text h2 { font-size: 60px; }
    .login-card { max-width: 500px; padding: 55px; }
}

@media (max-width: 1200px) {
    .container { grid-template-columns: 50% 50%; }
    .hero-text { width: 360px; left: 40px; }
    .branding { left: 40px; }
    .hero-text h2 { font-size: 38px; }
}

/* Tablet & Mobile Breakpoint */
@media (max-width: 900px) {
    .container { 
        grid-template-columns: 1fr; 
    }
    
    .left-panel { 
        display: none; /* Hide left side graphics on small screens */
    }
    
    .right-panel { 
        min-height: 100vh;
        padding: 30px 20px;
        background: #f7f7f7;
    }

    .floating-shapes { 
        display: none; 
    }
    
    .login-card {
        width: 100%;
        max-width: 420px;
        padding: 35px 25px;
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
        background: #ffffff;
    }

    .card-header {
        align-items: center;
        text-align: center;
    }

    .card-logo {
        max-width: 160px;
    }

    .login-card p {
        text-align: center;
    }

    .options {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .card-logo {
        max-width: 140px;
    }

    .options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .field input, .login-btn {
        height: 52px;
    }
    
    .microsoft {
        height: 50px;
    }
}
.alert {
  position: relative;
  padding: 1rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.alert-heading {
  color: inherit;
}

.alert-link {
  font-weight: 700;
  text-decoration: underline;
}

/* Dismissible layout rules */
.alert-dismissible {
  padding-right: 3rem;
}

.alert-dismissible .btn-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 1.25rem 1rem;
}
/* Success (Green) */
.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}
.alert-success .alert-link {
  color: #0c4128;
}

/* Danger (Red) */
.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}
.alert-danger .alert-link {
  color: #6a1a21;
}

/* Warning (Yellow) */
.alert-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}
.alert-warning .alert-link {
  color: #523e02;
}

/* Info (Blue/Teal) */
.alert-info {
  color: #055160;
  background-color: #cff4fc;
  border-color: #b6effb;
}
.alert-info .alert-link {
  color: #04414d;
}

/* Primary (Dark Blue) */
.alert-primary {
  color: #084298;
  background-color: #cfe2ff;
  border-color: #b6d4fe;
}
.alert-primary .alert-link {
  color: #06357a;
}
