/* ============================================================
   GTAS HRIS — Login Page
   Theme  : Gold · White · Dark Rich Background
   Layout : Left = Form (white/cream) | Right = Branding (dark gold)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Cinzel:wght@400;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%; height: 100%;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ══════════════════════════════════
   PAGE — warm cream background
   ══════════════════════════════════ */
body {
    min-height: 100vh;
    background: #f5edd6;
    display: grid;
    place-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

#wave-canvas {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    z-index: 1; pointer-events: none; display: block;
}

.background-animation {
    position: fixed; inset: 0;
    z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 12% 18%, rgba(212,175,55,.22) 0%, transparent 55%),
        radial-gradient(ellipse 60% 65% at 88% 82%, rgba(180,130,0,.18) 0%, transparent 55%),
        #f5edd6;
}

/* ══════════════════════════════════
   CARD
   ══════════════════════════════════ */
.login-container {
    position: relative; z-index: 10;
    display: flex; justify-content: center; align-items: center;
    padding: 40px 20px; width: 100%;
}

.login-card {
    display: flex; flex-direction: row; align-items: stretch;
    width: 980px; max-width: 100%;
    border-radius: 12px; overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(212,175,55,.30),
        0 32px 80px rgba(100,60,0,.28),
        0 8px 24px rgba(0,0,0,.15);
    min-height: 600px;
    animation: cardIn .55s cubic-bezier(.22,.68,0,1.2) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(28px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card::before, .login-card::after { display: none; }

/* ══════════════════════════════════
   FORM PANEL — Left (white/cream)
   ══════════════════════════════════ */
.right-panel {
    flex: 1; min-width: 0;
    background: #fffdf5;
    padding: 56px 52px 44px;
    display: flex; flex-direction: column; justify-content: center;
    align-items: center;
    position: relative; overflow: hidden;
    border-radius: 12px 0 0 12px;
}

.right-panel::before {
    content: '';
    position: absolute; top: -70px; right: -70px;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,.10) 0%, transparent 70%);
    pointer-events: none;
}
.right-panel::after {
    content: '';
    position: absolute; bottom: -90px; left: -60px;
    width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,.07) 0%, transparent 70%);
    pointer-events: none;
}

/* Step indicator */
.logo-section {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 32px; padding: 0;
    background: none; border-radius: 0; align-self: flex-start;
    width: 100%; max-width: 360px;
}
.logo-section::before {
    content: '01';
    font-size: 12px; font-weight: 900;
    color: #8a6200; letter-spacing: 2px;
}
.logo-section::after {
    content: '';
    width: 34px; height: 2px;
    background: linear-gradient(90deg, #d4af37, #f0d060);
    border-radius: 1px;
}
.logo-icon { display: none; }
.system-name {
    font-size: 10px; font-weight: 700;
    color: #8a6200; letter-spacing: 2.5px; text-transform: uppercase;
}

/* Heading */
.right-panel h2 {
    font-size: 30px; font-weight: 900;
    color: #1a0f00; letter-spacing: -0.5px;
    margin-bottom: 6px; text-align: left; line-height: 1.15;
    width: 100%; max-width: 360px;
}
.right-panel h2::after {
    content: ' ◆';
    color: #d4af37; font-size: 16px; vertical-align: middle;
}

.welcome-text {
    color: #8a7040; font-size: 13px; font-weight: 400;
    margin: 0 0 28px; text-align: left; line-height: 1.5;
    width: 100%; max-width: 360px;
}

/* Form */
.login-form { display: flex; flex-direction: column; max-width: 360px; width: 100%; align-self: center; }
.form-group { margin-bottom: 24px; }

.input-wrapper {
    position: relative; display: flex; align-items: center;
    border: 1.5px solid #e8d080;
    border-radius: 6px; background: #fffef5;
    transition: border-color .2s, box-shadow .2s;
}
.input-wrapper:hover:not(.focused) { border-color: #c8a020; }
.input-wrapper.focused {
    border-color: #b8860b;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(212,175,55,.18);
}

.notch-label {
    position: absolute; top: -8px; left: 12px;
    background: #fffef5; padding: 0 5px;
    font-size: 9px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: #b8860b; pointer-events: none; transition: color .2s;
}
.input-wrapper.focused .notch-label { color: #8a6200; background: #fff; }

.input-icon {
    position: absolute; left: 13px;
    color: #d4af37; font-size: 13px;
    pointer-events: none; transition: color .2s;
}
.input-wrapper.focused .input-icon { color: #b8860b; }

.form-group input {
    width: 100%;
    padding: 10px 38px 10px 36px;
    border: none; border-radius: 6px;
    font-size: 12.5px; font-family: inherit;
    background: transparent; color: #1a0f00; outline: none;
}
.form-group input::placeholder { color: #c8a860; font-size: 12px; }

.toggle-password {
    position: absolute; right: 13px;
    color: #d4af37; cursor: pointer;
    font-size: 13px; transition: color .2s;
}
.toggle-password:hover { color: #8a6200; }

/* Sign In button */
.login-btn {
    width: 100%; padding: 10px 20px; margin-top: 6px;
    background: linear-gradient(135deg, #d4af37 0%, #c8960c 55%, #b8820a 100%);
    color: #fff; border: none; border-radius: 6px;
    font-size: 12.5px; font-weight: 800; font-family: inherit;
    cursor: pointer; letter-spacing: .8px; text-transform: uppercase;
    transition: all .2s;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    box-shadow: 0 4px 20px rgba(184,130,10,.35);
    position: relative; overflow: hidden;
}
.login-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 50%);
    border-radius: inherit;
}
.login-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e0c040 0%, #d4a010 55%, #c08a0c 100%);
    box-shadow: 0 8px 28px rgba(184,130,10,.50);
    transform: translateY(-1px);
}
.login-btn:active:not(:disabled) { transform: translateY(0); box-shadow: 0 2px 12px rgba(184,130,10,.30); }
.login-btn i { font-size: 13px; transition: transform .2s; }
.login-btn:hover:not(:disabled) i { transform: translateX(3px); }

/* Forgot password */
.forgot-link {
    text-align: center; margin-top: 16px; display: block;
    color: #a07830; text-decoration: none;
    font-size: 12px; font-weight: 500; transition: color .2s;
}
.forgot-link:hover { color: #6a4a00; }
.forgot-link i { margin-right: 4px; font-size: 10px; }

/* Error box */
.login-error {
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    background: #fff8e8; border: 1.5px solid #d4a012; color: #6a4400;
    border-radius: 6px; padding: 12px 16px;
    font-size: 12.5px; font-weight: 500; line-height: 1.5;
    margin-bottom: 16px; animation: shakeError .35s ease;
}
@keyframes shakeError {
    0%,100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* Powered by footer */
.footer-text {
    margin-top: auto; padding-top: 18px;
    border-top: 1px solid #e8d080; text-align: center;
    width: 100%; max-width: 360px;
}
.developer-section { margin-top: 0; }
.developer-info-footer {
    display: inline-flex; align-items: center;
    justify-content: center; gap: 8px;
    padding: 6px 16px;
    border: 1px solid #e8d080; border-radius: 4px; background: #fffef0;
}
.developer-logo-footer { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; opacity: 1; }
.developer-icon-footer { font-size: 16px; color: #d4af37; }
.developer-text { text-align: left; }
.developed-label {
    font-size: 7.5px; color: #a07830; margin: 0;
    text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; display: block;
}
.developer-name-footer {
    font-size: 11.5px; font-weight: 800; color: #6a4400; margin: 0; letter-spacing: .2px;
}

/* ══════════════════════════════════
   BRANDING PANEL — Right
   Dark rich brown/gold — like the screenshot
   ══════════════════════════════════ */
.left-panel {
    width: 430px; flex-shrink: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% 30%, rgba(212,175,55,.18) 0%, transparent 55%),
        radial-gradient(ellipse 70% 80% at 50% 85%, rgba(100,60,0,.30) 0%, transparent 55%),
        linear-gradient(170deg, #1a1000 0%, #2d1e00 30%, #241600 60%, #181000 100%);
    color: #d4af37;
    padding: 40px 36px 36px;
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    position: relative; overflow: hidden;
    border-radius: 0 12px 12px 0;
}

/* Subtle glow rings */
.left-panel::before {
    content: '';
    position: absolute;
    width: 480px; height: 480px; border-radius: 50%;
    border: 1px solid rgba(212,175,55,.10);
    top: -180px; right: -160px;
    animation: brandRing 20s ease-in-out infinite alternate;
}
.left-panel::after {
    content: '';
    position: absolute;
    width: 320px; height: 320px; border-radius: 50%;
    border: 1px solid rgba(212,175,55,.07);
    bottom: -120px; left: -90px;
    animation: brandRing 25s ease-in-out infinite alternate-reverse;
}
@keyframes brandRing {
    from { transform: scale(1) rotate(0deg); }
    to   { transform: scale(1.05) rotate(6deg); }
}

.blob-mid {
    position: absolute;
    width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,.10) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    pointer-events: none;
    animation: blobGlow 6s ease-in-out infinite alternate;
}
@keyframes blobGlow {
    from { opacity: .7; transform: translate(-50%,-50%) scale(1); }
    to   { opacity: 1;  transform: translate(-50%,-52%) scale(1.08); }
}

.left-content {
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; gap: 0;
}

/* Company name — pill badge like the screenshot */
.left-header {
    flex-shrink: 0;
    margin-bottom: 0;
    width: 100%;
}
.company-title { margin: 0; }

.company-name-line {
    display: inline-flex;
    align-items: center; gap: 8px;
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 13px; font-weight: 600;
    color: #d4af37;
    letter-spacing: 1px;
    line-height: 1.4;
    border: 1px solid rgba(212,175,55,.35);
    border-radius: 50px;
    padding: 7px 18px;
    background: rgba(212,175,55,.08);
    word-break: break-word;
    max-width: 100%;
    text-align: center;
}
.company-name-line::before {
    content: '◯';
    font-size: 10px;
    opacity: .6;
}

/* Logo — large, centered, with gold radial glow behind it */
.left-hero {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    min-height: 280px;
    padding: 10px 0;
    position: relative;
}

/* Gold glow radial behind logo */
.left-hero::before {
    content: '';
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,.18) 0%, transparent 65%);
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    pointer-events: none;
}

.company-logo-circle {
    width: min(340px, 85%);
    height: auto;
    aspect-ratio: 1 / 1;
    background: transparent; border-radius: 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: none; font-size: 150px; color: #d4af37;
    animation: logoFloat 5s ease-in-out infinite; flex-shrink: 0;
    position: relative; z-index: 1;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}
.company-logo-circle img {
    width: 100%; height: 100%;
    object-fit: contain; border-radius: 0; padding: 0;
    filter:
        drop-shadow(0 0 30px rgba(212,175,55,.40))
        drop-shadow(0 20px 40px rgba(0,0,0,.50))
        brightness(1.08);
}

/* Tagline — "EXCELLENCE · VALUE · ELEGANCE" style */
.left-footer-caption {
    flex-shrink: 0; margin-top: 4px;
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.left-footer-caption::before,
.left-footer-caption::after {
    content: '';
    flex: 1; max-width: 40px; height: 1px;
    background: rgba(212,175,55,.35);
}
.left-footer-caption h2 {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 9px; font-weight: 600;
    color: rgba(212,175,55,.65);
    letter-spacing: 5px; text-transform: uppercase; margin: 0;
    white-space: nowrap;
}

/* Quote block */
.left-panel-quote {
    position: relative; z-index: 1;
    margin-top: 16px; padding: 13px 18px;
    background: rgba(212,175,55,.07);
    border-radius: 4px; border: 1px solid rgba(212,175,55,.12);
    text-align: left; flex-shrink: 0;
}
.left-panel-quote p {
    font-size: 10.5px; color: rgba(212,175,55,.60);
    line-height: 1.7; font-style: normal;
    margin-bottom: 7px; font-weight: 400; letter-spacing: .1px;
}
.left-panel-quote .quote-author {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 8px; font-weight: 600;
    color: rgba(212,175,55,.50);
    letter-spacing: 2.5px; text-transform: uppercase;
    display: flex; align-items: center; gap: 7px;
}
.left-panel-quote .quote-author::before {
    content: '';
    display: inline-block; width: 18px; height: 1px;
    background: rgba(212,175,55,.35);
}

/* Dots */
.left-panel-dots {
    position: relative; z-index: 1;
    display: flex; gap: 5px; margin-top: 12px;
    align-items: center; justify-content: center;
}
.left-panel-dots span {
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(212,175,55,.20);
}
.left-panel-dots span.active {
    width: 18px; border-radius: 2px;
    background: rgba(212,175,55,.65);
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 880px) {
    .login-container { padding: 20px 16px; }
    .login-card {
        flex-direction: column; max-width: 480px;
        margin: 0 auto; min-height: auto; border-radius: 10px;
    }
    .left-panel {
        width: 100%; padding: 32px 28px 32px;
        border-radius: 0 0 10px 10px; order: 2;
        min-height: 420px;
    }
    .left-hero { min-height: 280px; }
    .left-hero::before { width: min(300px,80%); height: min(300px,80%); }
    .right-panel { border-radius: 10px 10px 0 0; padding: 36px 28px 28px; order: 1; }
    .right-panel h2 { font-size: 26px; }
    .company-logo-circle { width: min(300px, 80%); }
    .company-name-line { font-size: 11px; padding: 6px 14px; }
    .left-panel-quote { display: none; }
}

@media (max-width: 480px) {
    .right-panel { padding: 28px 20px 24px; }
    .left-panel  { padding: 28px 20px 28px; min-height: 380px; }
    .left-hero { min-height: 260px; }
    .left-hero::before { width: min(260px,80%); height: min(260px,80%); }
    .right-panel h2 { font-size: 22px; }
    .company-logo-circle { width: min(260px, 80%); }
    .company-name-line { font-size: 10px; padding: 5px 12px; }
    .login-btn { padding: 14px; font-size: 13.5px; }
    .form-group input { font-size: 13.5px; }
}

@media (max-width: 380px) {
    .left-panel { min-height: 340px; }
    .left-hero { min-height: 220px; }
    .company-logo-circle { width: min(220px, 80%); }
}
