:root {
   --bg-1: #0f172a;
   --card: rgba(255,255,255,0.06);
   --glass: rgba(255,255,255,0.06);
   --accent-1: #7c3aed;
   --accent-2: #06b6d4;
   --accent-3: #f97316;
   --muted: rgba(255,255,255,0.7);
   --glass-border: rgba(255,255,255,0.08);
   font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

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

html, body{
   height: 100%;
}

.hidden {
   opacity: 0.3;
}

body {
   min-height: 100vh;
   background:
        radial-gradient(1200px 600px at 10% 10%, rgba(124,58,237,0.12), transparent 6%),
        radial-gradient(1000px 500px at 95% 90%, rgba(6,182,212,0.08), transparent 8%),
        linear-gradient(180deg,var(--bg-1) 0%, #071033 100%);
   color: #fff;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 36px;
   overflow: hidden;
}

.bg-shapes {
   position: fixed;
   inset: 0;
   z-index: 0;
   pointer-events: none;
   overflow: hidden;
}

.shape {
   position: absolute;
   border-radius: 50%;
   filter: blur(40px);
   opacity: 0.18;
   transform: translate3d(0,0,0);
   animation: float 10s ease-in-out infinite;
}

.shape.s1 {
   width: 420px;
   height: 420px;
   background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
   left: -10%;
   top: -5%;
   animation-duration: 14s;
}

.shape.s2 {
   width: 300px;
   height: 300px;
   background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
   right: -8%;
   bottom: -10%;
   animation-duration: 12s;
}

.shape.s3 {
   width: 180px;
   height: 180px;
   background: linear-gradient(135deg, var(--accent-3), var(--accent-1));
   left: 20%;
   bottom: 10%;
   animation-duration: 16s;
}

@keyframes float {
   0%{
     transform: translateY(0) translateX(0);
   } 50% {
     transform: translateY(-32px) translateX(18px);
   } 100% {
     transform: translateY(0) translateX(0);
   }
}

@media (max-width: 500px) {
    .left {
        width: 100%;
        max-width: none;
    }
    body {
        padding: 0;
    }
}

.container {
   position: relative;
   z-index: 5;
   display: block;
   max-width: none; 
   width: 100%;
   padding: 0;
   grid-template-columns: 1fr 420px;
   gap: 36px;
   animation: fadeInDown 3s;
}

@keyframes fadeInDown {
  from {
   transform: translate3d(0,-1000px,0)
  } to {
   transform: translate3d(0,0,0);
   opacity: 1
  }
}

.left {
   width: 100%;
   max-width: 420px;
   margin: 0 auto;
   padding: 36px;
   border-radius: 18px;
   background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
   backdrop-filter: blur(8px);
   box-shadow: 0 10px 30px rgba(2,6,23,0.6);
   border: 1px solid var(--glass-border);
}

.right {
   padding: 28px;
   border-radius: 18px;
   background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
   backdrop-filter: blur(6px); 
   box-shadow: 0 20px 50px rgba(2,6,23,0.7);
   border: 1px solid var(--glass-border);
}

.brand {
   display: flex;
   flex-direction: column; 
   align-items: center; 
   gap: 14px;
   margin-bottom: 30px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
   font-size: 26px;
   font-weight: 700;
   letter-spacing: 1px;
   background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   animation: fadeInDown 3s;
}

.logo {
   width: 56px;
   height: 56px;
   border-radius: 12px;
   display: grid;
   place-items: center;
   background: linear-gradient(135deg,var(--accent-1),var(--accent-2));
   box-shadow: 0 8px 24px rgba(7,10,33,0.6);
   transform: rotate(-8deg);
   animation: fadeInDown 3s;
}

.logo svg {
   width: 36px;
   height: 36px;
}

h1#login-title {
   color: var(--accent-3);
   font-weight: 700;
   font-size: 20px;
   letter-spacing: -0.2px;
   text-align: center;
   margin-bottom: 5px;
}

p.lead {
   color: var(--muted);
   margin-top: 6px;
   font-size: 14px;
   font-weight: 500;
   text-align: center;
}

form {
   display: flex;
   flex-direction: column;
   gap: 15px;
}

.input-group input {
    border: 2px solid #3498db;
    padding: 12px;
    border-radius: 15px;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 15px;
}

.animated-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group .toggle-password, .toggle-email {
    position: absolute;
    right: 12px;
    top: 22px;
    transform: translateY(-50%);
    cursor: pointer;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-email {
    pointer-events: none;
    cursor: default; 
}

.toggle-password {
    cursor: pointer;
}

.input-group input:focus {
    border-color: #2ecc71;
    outline: none;
}

.input-group:nth-child(1) { animation-delay: 3.5s; }
.input-group:nth-child(2) { animation-delay: 4.0s; }

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 10px;
}

.actions label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 5px;
}

.remember {
   font-size: 13px;
   font-weight: 500;
   color: #fff;
   margin: 0;
}

.forgot {
   font-size: 13px;
   font-weight: 800;
   color: var(--muted);
   text-decoration: underline;
   cursor: pointer;
}
]
.forgot:hover {
    color: var(--accent-3);
}

.btn {
   display: inline-flex;
   justify-content: center;
   align-items: center;
   gap: 10px;
   padding: 12px 16px;
   border-radius: 12px;
   border: 0;
   cursor: pointer;
   font-weight: 600;
   animation: fadeInDown 3s;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
    background-color: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

.btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary {
   background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
   box-shadow: 0 10px 30px rgba(6,182,212,0.08);
   color: white;
   font-weight: 700;
}

.small {
    font-size: 9px;
    color: var(--muted);
    font-weight: 800;
    margin-top: 12px;
}

.swal2-popup {
    font-family: 'Poppins', sans-serif;
}

.swal-compact-dark {
    background: #1e1e2f !important;
    color: #f1f1f1 !important;
    border: 1px solid #7a4fcf !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
}

.swal-title-small {
    font-size: 14px !important;
    font-weight: 800 !important;
}

.swal-icon-small {
    transform: scale(0.8);
    margin-right: 4px !important;
}