/* ==========================================================
   PackGPT Login Styles
   ----------------------------------------------------------
   Purpose:
   Styling for the PackGPT login experience only.

   Contains:
   ✓ Login Layout
   ✓ Login Form
   ✓ Mobile Responsive
   ✓ Login Animations (future)

   Do NOT place:
   ✗ Dashboard CSS
   ✗ Common UI Components
   ✗ Global Theme Variables

   Shared UI belongs in:
   css/packgpt-ui.css (Future)

========================================================== */

/* ==========================================================
   Design Tokens
========================================================== */

:root{

    --pg-primary:#0F4C81;
    
    --pg-primary-hover:#0B3D68;
    
    --pg-white:#ffffff;

    --pg-bg:#f4f6f9;

    --pg-card:#ffffff;

    --pg-text:#0f172a;

    --pg-muted:#64748b;

    --pg-border:#d9dee8;

    --pg-success:#22c55e;

    --pg-error:#ef4444;

    --pg-radius:12px;

    --pg-radius-large:18px;

    --pg-shadow:
        0 15px 40px rgba(0,0,0,.10);

    --pg-transition:.30s ease;

}

body{

    margin:0;

    min-height:100vh;

    overflow:hidden;

    font-family:Arial,sans-serif;

    background:var(--pg-bg);

    color:var(--pg-text);

}

/* LOGIN SCREEN */
#loginPage{
  height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  transition:0.6s ease;
  position:relative;
  z-index:2;
}

.login-box{

    background:var(--pg-card);

    width:380px;

    max-width:90vw;

    padding:42px;

    border-radius:var(--pg-radius-large);

    box-shadow:var(--pg-shadow);

    text-align:center;

    box-sizing:border-box;

    transition:all var(--pg-transition);

    border:1px solid rgba(0,0,0,.05);

}

.login-box h2{

    margin:0;

    font-size:34px;

    font-weight:700;

    letter-spacing:-0.8px;

    color:var(--pg-text);

}

.login-box div{

    color:var(--pg-muted);

    line-height:1.5;

}

input{
    width:100%;
    padding:14px;
    margin:10px 0;
    border-radius:10px;
    border:1px solid var(--pg-border);
    transition:all var(--pg-transition);
    font-size:14px;
    box-sizing:border-box;
    background:var(--pg-card);
}

input:focus{

    outline:none;

    border-color:var(--pg-primary);

    box-shadow:0 0 0 4px rgba(0,70,190,.12);

}

button{
    width:100%;
    padding:14px;
    background:var(--pg-primary);
    --pg-white:#ffffff;
    border:none;
    border-radius:10px;
    cursor:pointer;
    margin-top:10px;
    transition:all var(--pg-transition);
    box-sizing:border-box;
    letter-spacing:.3px;
    color:var(--pg-white);
    font-size:16px;
    font-weight:600;
}

button:hover{

    background:var(--pg-primary-hover);

    transform:translateY(-2px);

    box-shadow:0 10px 24px rgba(15,76,129,.28);

}

#statusText{

    margin-top:18px;

    color:#dc2626;

    font-size:14px;

    font-weight:700;

    display:none;

    min-height:22px;

}


#resetLink{

    margin-top:10px;

    text-align:center;

}

#resetLink a{

    color:#dc2626;

    font-weight:600;

    text-decoration:none;

}

#resetLink a:hover{

    text-decoration:underline;

}

/* DASHBOARD */
#dashboard{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100vh;
  background:var(--pg-bg);
  color:var(--pg-text);
  padding:40px;
  opacity:0;
  visibility:hidden;
  transition:0.8s ease;
  z-index:1;
}

.showDashboard{
  opacity:1 !important;
  visibility:visible !important;
}

/* =========================================
   MOBILE LOGIN
========================================= */

@media screen and (max-width:768px){

    body{
        margin:0;
        padding:0;
    }

    #loginPage{

        min-height:100dvh;

        display:flex;

        align-items:center;

        justify-content:center;

        padding:16px;

        box-sizing:border-box;

    }

    .login-box{

        width:100%;

        max-width:420px;

        padding:28px;

        border-radius:16px;

        box-sizing:border-box;

    }

    .login-box h2{

        font-size:28px;

        margin-bottom:10px;

    }

    input{

        height:52px;

        font-size:16px;

    }

    button{

        height:52px;

        font-size:16px;

    }

}


/* ==========================================================
   Login UI Enhancements
   (Reserved for Future)
========================================================== */

/* ==========================================
   Login Header
========================================== */

.login-header{

    display:flex;

    flex-direction:column;

    align-items:center;

    margin-bottom:30px;

}

.login-logo{

    width:72px;

    height:72px;

    border-radius:50%;

    background:var(--pg-primary);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:34px;

    color:var(--pg-white);

    margin-bottom:18px;

    box-shadow:0 10px 25px rgba(0,70,190,.20);

}

.login-title{

    margin:0;

    font-size:40px;

    font-weight:700;

    color:var(--pg-text);

    letter-spacing:-1px;

}

.login-subtitle{

    margin-top:10px;

    margin-bottom:0;

    color:var(--pg-muted);

    font-size:15px;

    line-height:1.6;

    text-align:center;

    max-width:260px;

}

.login-footer{

    margin-top:24px;

    text-align:center;

    font-size:13px;

    color:var(--pg-muted);

    letter-spacing:.3px;

}

/* ==========================================
   Full Screen Loader
========================================== */

#loaderOverlay{

    position:fixed;

    inset:0;

    display:none;

    align-items:center;

    justify-content:center;

    background:var(--pg-bg);

    z-index:9999;

}

.loader-box{

    text-align:center;

}

.loader-logo{

    width:90px;

    height:90px;

    border-radius:50%;

    background:var(--pg-primary);

    color:var(--pg-white);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:42px;

    margin:auto;

    margin-bottom:24px;

    box-shadow:0 15px 40px rgba(0,0,0,.12);

}

.loader-box h2{

    margin:0;

    font-size:34px;

}

.loader-box p{

    color:var(--pg-muted);

    margin-top:12px;

}

#loginPage{

    position:fixed;

    inset:0;

}

#statusText{

    min-height:22px;

}

#resetLink{

    min-height:20px;

}