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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: rgb(249, 250, 251);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: transparent;
    padding: 50px 40px;
    width: 100%;
    text-align: center;
}

.logo {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.logo img {
    max-width: 240px;
    height: auto;
}

.login-title {
    color: #1e293b;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.form-group {
    text-align: left;
    width: 100%;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: #1e3a5f;
    width: 46px;
    height: 46px;
    border-radius: 8px 0px 0 8px;
    z-index: 1;
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 68px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #64748b;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #94a3b8;
}

.input-wrapper input:focus {
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: color 0.3s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: #1e3a5f;
}

.toggle-password svg {
    width: 15px;
    height: 15px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-left: 5px;
    margin-right: 5px;
    width: 98%;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
}

.remember-me input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #1e3a5f;
}

.remember-me span {
    user-select: none;
}

.forgot-link {
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #1e3a5f;
}

.forgot-password {
    text-align: right;
    margin-top: 8px;
    margin-bottom: 10px;
}

.forgot-password a {
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #1e3a5f;
}

.btn-login {
    width: 90%;
    padding: 16px;
    background-color: #1e3a5f;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-login:hover {
    background-color: #152d4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

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

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Responsive Design */

/* Tablets */
@media (max-width: 768px) {
    .login-box {
        padding: 40px 30px;
    }

    .logo img {
        max-width: 160px;
    }

    .login-title {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .input-wrapper input {
        padding: 13px 16px 13px 65px;
        font-size: 14px;
    }

    .input-icon {
        width: 38px;
        height: 38px;
    }

    .btn-login {
        padding: 15px;
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .login-box {
        padding: 35px 25px;
    }

    .logo {
        margin-bottom: 30px;
    }

    .logo img {
        max-width: 140px;
    }

    .login-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .login-form {
        gap: 14px;
    }

    .input-wrapper input {
        padding: 12px 16px 12px 62px;
        font-size: 14px;
        border-radius: 7px;
    }

    .input-icon {
        width: 36px;
        height: 36px;
        left: 14px;
        border-radius: 5px;
    }

    .input-icon svg {
        width: 18px;
        height: 18px;
    }

    .forgot-password {
        margin-top: 6px;
        margin-bottom: 8px;
    }

    .forgot-password a {
        font-size: 13px;
    }

    .btn-login {
        padding: 14px;
        font-size: 15px;
        border-radius: 7px;
    }
}

/* Extra small mobile */
@media (max-width: 360px) {
    .login-box {
        padding: 30px 20px;
    }

    .logo img {
        max-width: 120px;
    }

    .login-title {
        font-size: 17px;
    }

    .input-wrapper input {
        padding: 11px 14px 11px 58px;
        font-size: 13px;
    }

    .input-icon {
        width: 34px;
        height: 34px;
        left: 12px;
    }

    .btn-login {
        padding: 13px;
        font-size: 14px;
    }
}

/* Toast Notification */
.login-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 420px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.login-toast-show {
    opacity: 1;
    transform: translateX(0);
}

.login-toast-error {
    border-left: 4px solid #dc2626;
}

.login-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.login-toast-error .login-toast-content svg {
    color: #dc2626;
    flex-shrink: 0;
}

.login-toast-content span {
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.login-toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.login-toast-close:hover {
    background-color: #f1f5f9;
    color: #475569;
}

@media (max-width: 640px) {
    .login-toast {
        top: 16px;
        right: 16px;
        left: 16px;
        min-width: auto;
        max-width: none;
    }
}
