:root {
    --navy: #14213d;
    --blue: #2563eb;
    --slate-50: #f8fafc;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc, #dbeafe);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

.container {
    width: 100%;
    max-width: 440px;
}

.form-box {
    width: 100%;
    padding: 45px 38px 32px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.25), 0 2px 10px rgba(0,0,0,0.12);
    animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.logo-wrapper {
    text-align: center;
    margin-bottom: 25px;
}

.company-logo {
    width: 95px;
    height: 95px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
}

.logo-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin-top: 10px;
    line-height: 1.4;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    color: var(--navy);
}

input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1.6px solid var(--slate-200);
    background: var(--slate-50);
    font-size: 15px;
    margin-bottom: 18px;
    transition: 0.25s ease;
    outline: none;
    color: #333;
}

input::placeholder {
    color: var(--slate-500);
}

input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.25);
    background: white;
}

.password-wrapper {
    position: relative;
    margin-bottom: 18px;
}

.password-wrapper input {
    padding-right: 50px;
    margin-bottom: 0;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
}

.toggle-password:hover {
    background: var(--slate-200);
}

button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 18px;
    transition: 0.25s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.35);
}

button:active {
    transform: scale(0.97);
}

.error-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    background: #fff1f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--slate-200);
}

.powered-by img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.powered-by span {
    font-size: 12px;
    color: var(--slate-500);
    font-weight: 500;
}

.powered-by strong {
    font-weight: 700;
    color: var(--slate-700);
}

@media (max-width: 480px) {
    .form-box { padding: 35px 25px; }
    h2 { font-size: 21px; }
}
