 :root {
     --primary: #10177f;
     --primary-dark: #080e67;
     --primary-light: #eef1ff;
     --text: #151827;
     --muted: #69707d;
     --border: #dfe3eb;
     --bg: #f4f6fa;
     --white: #ffffff;
     --danger: #dc3545;
 }

 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
 }

 body {
     min-height: 100vh;
     min-height: 100dvh;
     display: flex;
     align-items: center;
     justify-content: center;

     font-family:
         Inter,
         -apple-system,
         BlinkMacSystemFont,
         "Segoe UI",
         Roboto,
         Arial,
         sans-serif;

     color: var(--text);
     background:
         radial-gradient(circle at 15% 20%,
             rgba(16, 23, 127, 0.08),
             transparent 35%),
         radial-gradient(circle at 85% 80%,
             rgba(16, 23, 127, 0.06),
             transparent 35%),
         var(--bg);

     padding: 24px;
 }
.error-message {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

 .login-wrapper {
     width: 100%;
     max-width: 430px;
 }

 .login-card {
     background: var(--white);
     border: 1px solid rgba(20, 30, 80, 0.06);
     border-radius: 20px;
     padding: 40px;

     box-shadow:
         0 20px 60px rgba(20, 30, 80, 0.10),
         0 4px 14px rgba(20, 30, 80, 0.05);
 }

 /* Logo */
 .brand {
     text-align: center;
     margin-bottom: 34px;
 }

 .brand img {
     width: min(220px, 70%);
     height: auto;
     display: inline-block;
     object-fit: contain;
 }

 .welcome {
     text-align: center;
     margin-bottom: 28px;
 }

 .welcome h1 {
     font-size: 25px;
     line-height: 1.3;
     font-weight: 700;
     color: var(--text);
     margin-bottom: 7px;
 }

 .welcome p {
     font-size: 14px;
     color: var(--muted);
 }

 /* Form */
 .form-group {
     margin-bottom: 20px;
 }

 .form-group label {
     display: block;
     font-size: 14px;
     font-weight: 600;
     margin-bottom: 8px;
     color: #252938;
 }

 .input-wrapper {
     position: relative;
 }

 .input {
     width: 100%;
     height: 50px;
     border: 1px solid var(--border);
     border-radius: 9px;
     background: #fff;

     padding: 0 15px;

     font-size: 15px;
     color: var(--text);

     outline: none;
     transition:
         border-color 0.2s ease,
         box-shadow 0.2s ease,
         background 0.2s ease;
 }

 .input::placeholder {
     color: #a0a6b2;
 }

 .input:hover {
     border-color: #bcc3d0;
 }

 .input:focus {
     border-color: var(--primary);
     background: #fff;
     box-shadow: 0 0 0 4px rgba(16, 23, 127, 0.10);
 }

 .password-input {
     padding-right: 48px;
 }

 .toggle-password {
     position: absolute;
     top: 50%;
     right: 14px;
     transform: translateY(-50%);

     border: 0;
     background: transparent;
     color: #777f8d;

     cursor: pointer;
     padding: 5px;

     font-size: 17px;
 }

 .toggle-password:hover {
     color: var(--primary);
 }

 /* Options */
 .form-options {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin: -2px 0 24px;
     gap: 12px;
 }

 .remember {
     display: flex;
     align-items: center;
     gap: 8px;

     color: var(--muted);
     font-size: 13px;
     cursor: pointer;
 }

 .remember input {
     width: 16px;
     height: 16px;
     accent-color: var(--primary);
 }

 .forgot {
     color: var(--primary);
     text-decoration: none;
     font-size: 13px;
     font-weight: 600;
 }

 .forgot:hover {
     text-decoration: underline;
 }

 /* Button */
 .login-btn {
     width: 100%;
     height: 50px;

     border: 0;
     border-radius: 9px;

     background: linear-gradient(135deg,
             var(--primary),
             #171fa0);

     color: white;
     font-size: 15px;
     font-weight: 700;

     cursor: pointer;

     box-shadow: 0 8px 20px rgba(16, 23, 127, 0.20);

     transition:
         transform 0.2s ease,
         box-shadow 0.2s ease,
         background 0.2s ease;
 }

 .login-btn:hover {
     background: linear-gradient(135deg,
             var(--primary-dark),
             var(--primary));

     transform: translateY(-1px);
     box-shadow: 0 11px 25px rgba(16, 23, 127, 0.26);
 }

 .login-btn:active {
     transform: translateY(0);
 }

 .login-btn:focus-visible {
     outline: 3px solid rgba(16, 23, 127, 0.25);
     outline-offset: 3px;
 }

 /* Footer */
 .footer {
     text-align: center;
     margin-top: 26px;

     color: #8a919e;
     font-size: 12px;
 }

 /* Mobile */
 @media (max-width: 480px) {
     body {
         padding: 16px;
     }

     .login-card {
         padding: 30px 22px;
         border-radius: 16px;
     }

     .brand {
         margin-bottom: 27px;
     }

     .brand img {
         width: 190px;
     }

     .welcome h1 {
         font-size: 22px;
     }

     .form-options {
         align-items: flex-start;
     }
 }

 @media (max-width: 350px) {
     .login-card {
         padding: 26px 18px;
     }

     .form-options {
         flex-direction: column;
         gap: 12px;
     }
 }

 @media (prefers-reduced-motion: reduce) {

     *,
     *::before,
     *::after {
         transition: none !important;
     }
 }