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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f3f5fb;
    color: #111827;
    min-height: 100vh;
}

/* Page Layout */
.login-page {
    min-height: calc(100vh - 84px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 24px;
}

.login-container {
    width: 1060px;
    min-height: 470px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

/* Left Panel */
.login-left {
    position: relative;
    background-image:
        linear-gradient(rgba(7, 23, 50, 0.86), rgba(7, 23, 50, 0.9)),
        url("https://images.unsplash.com/photo-1639322537228-f710d846310a?q=80&w=1200&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
    min-height: 470px;
    display: flex;
    align-items: center;
    padding: 0 34px;
}

.left-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(67, 96, 139, 0.2), rgba(6, 18, 39, 0.75));
}

.brand-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 360px;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.shield-icon {
    width: 34px;
    height: 34px;
    background-color: #f1f5ff;
    color: #0c1b3a;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 90% 18%, 82% 74%, 50% 100%, 18% 74%, 10% 18%);
    font-size: 10px;
}

.brand-title h1 {
    font-size: 28px;
    font-weight: 700;
}

.brand-description {
    color: #b7c4dc;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 34px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
}
.feature-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
}

/* Right Panel */
.login-right {
    min-height: 470px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 56px;
    background-color: #ffffff;
}

.form-wrapper {
    width: 100%;
    max-width: 390px;
}

.form-wrapper h2 {
    font-size: 23px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 34px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #4b5563;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.input-box {
    height: 51px;
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #f4f4f6;
    padding: 0 14px;
    gap : 10px;
}

.input-box:focus-within {
    border-color: #0b1d43;
    background-color: #ffffff;
}

.input-icon {
    color: #6b7280;
    font-size: 15px;
    margin-right: 10px;
}

.input-box > svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.input-box > svg path {
    fill: #6b7280;
}

.input-box input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111827;
}

.input-box input::placeholder {
    color: #9ca3af;
}

.password-group {
    margin-bottom: 18px;
}

.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.password-label-row label {
    margin-bottom: 8px;
}

.forgot-link {
    font-size: 11px;
    font-weight: 700;
    color: #0b1d43;
    text-decoration: none;
    margin-bottom: 8px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.eye-icon {
    color: #6b7280;
    font-size: 14px;
    margin-left: 10px;
    cursor: pointer;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.remember-row input {
    width: 14px;
    height: 14px;
    accent-color: #0b1d43;
}

.remember-row label {
    font-size: 13px;
    color: #4b5563;
}

.login-button {
    width: 100%;
    height: 47px;
    border: none;
    border-radius: 5px;
    background-color: #071a3d;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.login-button:hover {
    background-color: #0d2857;
}

.error-message {
    display: block;
    margin-top: 6px;
    color: #dc2626;
    font-size: 12px;
}

.admin-link {
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

.admin-link a {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
}

.admin-link a:hover {
    text-decoration: underline;
}

.register-link {
    margin-top: 32px;
    padding-top: 5px;
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

.register-link a {
    color: #071a3d;
    text-decoration: none;
    font-weight: 700;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    height: 84px;
    background-color: #071a3d;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px;
}

.footer-brand h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-brand p {
    font-size: 10px;
    color: #b7c4dc;
    letter-spacing: 0.3px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-links a {
    color: #d7deef;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
    .login-container {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .login-left {
        min-height: 300px;
    }

    .login-right {
        min-height: auto;
        padding: 42px 32px;
    }

    .footer {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 24px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .login-page {
        padding: 28px 16px;
    }

    .login-left {
        padding: 32px 24px;
    }

    .brand-title h1 {
        font-size: 24px;
    }

    .brand-description {
        font-size: 13px;
    }

    .login-right {
        padding: 34px 22px;
    }

    .form-wrapper h2 {
        font-size: 21px;
    }
}

.input-error {
  border-color: #dc2626;
  background-color: #fff5f5;
}

.form-status {
  min-height: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.form-status.error {
  color: #dc2626;
}

.form-status.success {
  color: #15803d;
}

.eye-icon.active {
  color: #071a3d;
}
